-
Notifications
You must be signed in to change notification settings - Fork 5
/
qa.sh
executable file
·744 lines (658 loc) · 19 KB
/
qa.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
#!/bin/bash
# Welcome to the Liferay QA Tool
# This script can be used to accomplish many repetative bundle tasks that we do in QA.
# In order to use it, you simply need to set the variables below for your enviroment.
######################################################################################################################
#ENVIROMENT VARIABLES#################################################################################################
######################################################################################################################
## User Information ##
name="Victor"
# username is the value used to name your test.${username/computername}.properties
username="vicnate5"
## MySQL login ##
# this can usually be left blank
mysqlUsername=
mysqlPassword=
## MySQL Databases ##
masterDB="master"
ee62xDB="ee62"
ee70xDB="ee7"
ee61xDB="ee61"
ee6210DB="ee621"
eeMasterDB="eeMaster"
ce62xDB="ce62"
ce70xDB="ce7"
## Bundle ports ##
# e.g. for 9080 put 9
masterPort="9"
ee62xPort="7"
ee70xPort="8"
ee61xPort="6"
ee6210Port="8"
eeMasterPort="6"
ce62xPort="8"
ce70xPort="5"
## Output Directory ##
# if this script needs to create any files, it will put them here
outputDir="/Users/vicnate5/"
## Portal Directories ##
sourceDir="/Users/vicnate5/Liferay"
bundleDir="/Users/vicnate5/bundles"
masterSourceDir="$sourceDir/liferay-portal-master"
masterBundleDir="$bundleDir/master-bundles"
masterPluginsDir="$sourceDir/liferay-plugins-master"
ee62xSourceDir="$sourceDir/liferay-portal-ee-6.2.x"
ee62xBundleDir="$bundleDir/ee-6.2.x-bundles"
ee62xPluginsDir="$sourceDir/liferay-plugins-ee-6.2.x"
ee70xSourceDir="$sourceDir/liferay-portal-ee-7.0.x"
ee70xBundleDir="$bundleDir/ee-7.0.x-bundles"
ee70xPluginsDir="$sourceDir/liferay-plugins-ee-7.0.x"
ee61xSourceDir="$sourceDir/liferay-portal-ee-6.1.x"
ee61xBundleDir="$bundleDir/ee-6.1.x-bundles"
ee61xPluginsDir="$sourceDir/liferay-plugins-ee-6.1.x"
ee6210SourceDir="$sourceDir/liferay-portal-ee-6.2.10"
ee6210BundleDir="$bundleDir/ee-6.2.10-bundles"
ee6210PluginsDir="$sourceDir/liferay-plugins-ee-6.2.10"
eeMasterSourceDir="$sourceDir/liferay-portal-ee-master"
eeMasterBundleDir="$bundleDir/master-ee-bundles"
ce62xSourceDir="$sourceDir/liferay-portal-6.2.x"
ce62xBundleDir="$bundleDir/6.2.x-bundles"
ce62xPluginsDir="$sourceDir/liferay-plugins-6.2.x"
ce70xSourceDir="$sourceDir/liferay-portal-7.0.x"
ce70xBundleDir="$bundleDir/7.0.x-bundles"
ce70xPluginsDir="$sourceDir/liferay-plugins-7.0.x"
## Plugins ##
# This allows you to deploy a group of plugins that you use regularly
# There is one array variable for CE plugins and one for EE only plugins.
# You can list as many as you want.
# The CE plugins will be deployed on your EE bundles as well but not vis versa.
# ***These must be listed with their parent directory***
# e.g. webs/kaleo-web
cePlugins[0]="portlets/web-form-portlet"
eePlugins[0]="webs/kaleo-web"
eePlugins[1]="portlets/kaleo-forms-portlet"
eePlugins[2]="portlets/kaleo-designer-portlet"
eePlugins[3]="portlets/reports-portlet"
eePlugins[4]="webs/jasperreports-web"
eePlugins[5]="portlets/calendar-portlet"
## Bundle build sound ##
soundDir="/Users/vicnate5/Dropbox/Work/Scripts"
soundFile="bundleFinished.mp3"
## test.properties Location ##
testPropsDir="/Users/vicnate5/Dropbox/Work/files"
## Git Tools PRs
gitpr="/Users/vicnate5/Liferay/git-tools/git-pull-request/git-pull-request.sh"
######################################################################################################################
#FUNCTIONS############################################################################################################
######################################################################################################################
OS=$(uname)
if [[ ${OS} == *Darwin* ]]
then
open=open
sed=gsed
play=afplay
elif [[ ${OS} == *Linux* ]]
then
open=xdg-open
sed=sed
play=mpg123
elif [[ ${OS} == *NT* ]]
then
open=start
sed=sed
play=start
else
echo "Could not detect OS"
exit
fi
dbClear(){
if [[ -n "$mysqlUsername" ]]; then
if [[ -n "$mysqlPassword" ]]
then
mysql -u $mysqlUsername -p $mysqlPassword -e "drop database if exists $db; create database $db char set utf8;"
else
mysql -u $mysqlUsername -e "drop database if exists $db; create database $db char set utf8;"
fi
else
mysql -e "drop database if exists $db; create database $db char set utf8;"
fi
}
updateToHeadOption(){
read -p "Update to HEAD? (y/n)?" -n 1 -r
echo
if [[ $REPLY = y ]]
then
echo "Yes"
echo "Pulling Upstream"
echo
git pull upstream $v
echo
echo "Pushing to Origin"
echo
git push origin $v
elif [[ $REPLY = n ]]
then
echo "No"
else
echo "please choose Y or N"
sleep 1
continue
fi
}
setupDatabaseConnection(){
echo "Adding properties files"
cp $testPropsDir/test.$username.properties $dir/
echo app.server.parent.dir=$bundleDir >app.server.$username.properties
echo "jsp.precompile=on" > build.$username.properties
if [[ $wf = "true" ]]
then
(echo "" ; echo "app.server.type=wildfly") >>app.server.$username.properties
elif [[ $jb = "true" ]]
then
(echo "" ; echo "app.server.type=jboss") >>app.server.$username.properties
fi
echo "Configuring test.$username.properties for MySQL"
cd $dir
if [[ -e test.$username.properties ]]
# if test.username.properties exists(-e)
then
if grep -q database.mysql.schema test.$username.properties
# if there is a test.username.properties file that already defines the database name
then
${sed} -i "s/database.mysql.schema=.*/database.mysql.schema=${db}/" test.$username.properties
# basic inline(-i) search and replace
# using ".*" regex to denote that it can contain any string in the rest of that line
else
(echo "" ; echo "database.mysql.schema=${db}") >>test.$username.properties
# append the file with the database property after adding an extra line.
# this is to prevent the property being added to the end of a already populated line
fi
else
echo "database.mysql.schema=${db}" >test.$username.properties
# create file test.username.properties and add the database.name property
fi
if grep -q database.mysql.username test.$username.properties
then
${sed} -i "s/database.mysql.username=.*/database.mysql.username=${mysqlUsername}/" test.$username.properties
else
(echo "" ; echo "database.mysql.username=${mysqlUsername}") >>test.$username.properties
fi
if grep -q database.mysql.password test.$username.properties
then
${sed} -i "s/database.mysql.password=.*/database.mysql.password=${mysqlPassword}/" test.$username.properties
else
(echo "" ; echo "database.mysql.password=${mysqlPassword}") >>test.$username.properties
fi
echo "Adding portal URL"
(echo "" ; echo "test.url=http://localhost:${port}080") >>test.$username.properties
echo "Creating portal-ext.properties"
ant -f build-test.xml prepare-portal-ext-properties
}
createBundleZip(){
cd $dir
echo
echo "creating upgrade/backup zip"
echo
portalID="$(git log --pretty=format:'%H' -n 1)"
echo $portalID
cd ~/bundles
zip -rq $db-${portalID} $v-bundles/
mkdir master-upgrade-bundles
mv $db-${portalID}.zip ./master-upgrade-bundles
}
bundleBuild(){
cd $dir
read -p "Switch to main branch and update to HEAD? (y/n)?" -n 1 -r
echo
if [[ $REPLY = y ]]
then
echo "Checking for modified files"
echo
modified=$(git ls-files -m)
if [ -n "$modified" ]
then
printf "\e[31mModified Files:\e[0m"
echo $modified
echo
printf "\e[31mAny modified files will be cleared, are you sure you want to continue?\e[0m"
printf "\e[31m[y/n?]\e[0m"
read -n 1 -r
echo
if [[ $REPLY = y ]]
then
echo "Sweetness"
elif [[ $REPLY = n ]]
then
echo "No"
echo "Come back when you have committed or stashed your modified files."
sleep 3
continue
else
echo "please choose y or n"
sleep 1
continue
fi
else
echo "No modified files"
fi
echo "Switching to branch $v"
git checkout $v
echo
echo "Clearing Gradle Cache"
rm -r $dir/.gradle/caches
echo "Resetting main branch"
git reset --hard
echo
echo "Pulling Upstream"
echo
git pull upstream $v
echo
echo "Pushing to Origin"
echo
git push origin $v
elif [[ $REPLY = n ]]
then
echo "No"
else
echo "please choose y or n"
sleep 1
continue
fi
if [[ $v != *ee-6.1* ]]
then
echo "Setting up portal-ext.properties"
setupDatabaseConnection
fi
if [[ $wf = "true" ]]
then
echo
echo "Building $v on WILDFLY"
echo
(echo "" ; echo "app.server.type=wildfly") >>app.server.$username.properties
ant -f build-dist.xml unzip-wildfly
ant all
elif [[ $jb = "true" ]]
then
echo
echo "Building $v on JBOSS"
echo
(echo "" ; echo "app.server.type=jboss") >>app.server.$username.properties
ant -f build-dist.xml unzip-jboss
ant all
else
echo
echo "Building $v on TOMCAT"
echo
ant -f build-dist.xml unzip-tomcat
echo "ANT CLEAN" && \
ant clean && \
echo "ANT COMPILE" && \
ant compile && \
echo "ANT BUILD-DIST-TOMCAT" && \
ant -f build-dist.xml build-dist-tomcat -Dtomcat.keep.app.server.properties=true \
-Denv.JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home
fi
if [[ $v == *ee-6.1* ]]
then
cd $bundleDir/tomcat-7.0.40/conf
elif [[ $v == *6.2* ]]
then
cd $bundleDir/tomcat-7.0.62/conf
else
cd $bundleDir/tomcat-8.0.32/conf
fi
echo "Writing ports to ${port}080"
${sed} -i "s/8005/${port}005/; s/8080/${port}080/; s/8009/${port}009/; s/8443/${port}443/g" server.xml
echo "Remaking MySQL Database"
dbClear
echo "$db has been remade"
createBundleZip
# if [[ $v != *ee-6.1* ]]
# then
# echo "Adding virtual hosts property"
# cd $bundleDir/tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/
# ip=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
# if ! grep -q "virtual.hosts.valid.hosts" ./portal-ext.properties
# then
# (echo "" ; echo "virtual.hosts.valid.hosts=localhost,127.0.0.1,$ip") >> portal-ext.properties
# fi
# fi
echo "done"
cd $soundDir
$play $soundFile &> /dev/null
read -rsp $'Press any key to continue...\n' -n1 key
}
pluginsDeploy(){
cd $pluginsDir
echo "Plugins Branch Selected: $v"
echo
echo "--Plugins Selected--"
echo "CE: ${cePlugins[*]}" | tr " " "\n" | ${sed} 's/.*\///'
echo
echo "EE: ${eePlugins[*]}" | tr " " "\n" | ${sed} 's/.*\///'
echo
updateToHeadOption
for p in "${cePlugins[@]}"
do
echo "Deploying $p"
cd $p && ant clean deploy
echo "done"
echo
cd $pluginsDir
done
if [[ $v == *ee* ]]
then
for p in "${eePlugins[@]}"
do
echo "Deploying $p"
cd $p && ant clean deploy
echo "done"
echo
cd $pluginsDir
done
fi
echo "done"
read -rsp $'Press any key to continue...\n' -n1 key
}
clearEnv(){
echo "Portal Version Selected: $v"
echo
read -p "Do you want to remove all plugins except marketplace? (y/n)?" -n 1 -r
if [[ $REPLY = y ]]
then
echo
echo "Clearing Plugins"
if [[ $v == *ee-6.1* ]]
then
cd $bundleDir/tomcat-7.0.40/webapps && ls | grep -v "^ROOT\|^marketplace-portlet" | xargs rm -r
elif [[ $v == *6.2* ]]
then
cd $bundleDir/tomcat-7.0.62/webapps && ls | grep -v "^ROOT\|^marketplace-portlet" | xargs rm -r
else
cd $bundleDir/tomcat-8.0.32/webapps && ls | grep -v "^ROOT\|^marketplace-portlet" | xargs rm -r
fi
echo "done"
elif [[ $REPLY = n ]]
then
echo "No"
echo "Plugins untouched"
else
echo "please choose y or n"
sleep 1
continue
fi
echo "Clearing Data and Logs"
cd $bundleDir
rm -r data logs
echo "Remaking MySQL Database"
dbClear
echo "$db has been remade"
echo "done"
read -rsp $'Press any key to continue...\n' -n1 key
}
poshiFormat(){
echo "Formatting POSHI files for $v"
sleep 2
cd $dir/portal-impl
ant format-source
echo
echo "done"
}
poshiBuildSeleniumOption(){
read -p "Do you need to Build Selenium First? (y/n)?" -n 1 -r
echo
if [[ $REPLY = y ]]
then
cd $dir/portal-impl
echo "Building Selenium"
ant build-selenium
cd $dir
elif [[ $REPLY = n ]]
then
echo "No"
else
echo "please choose Y or N"
sleep 1
continue
fi
}
poshiRunnerRun(){
echo "POSHI Runner test for $v"
cd $dir
echo
echo "Enabling Poshi Runner"
echo
ant -f build-test.xml run-selenium-test -Dtest.class=$testname < /dev/null
echo
echo "Finished $testname"
echo
prTestName=$(echo $testname | ${sed} 's/#/_/')
${open} $dir/portal-web/test-results/$prTestName/index.html
echo "done"
read -rsp $'Press any key to continue...\n' -n1 key
}
poshiValidate(){
cd $dir
ant -f build-test.xml run-poshi-validation
echo "done"
read -rsp $'Press any key to continue...\n' -n1 key
}
poshiSetUrl(){
echo -n "Enter Portal URL and press [ENTER]: "
read url
cd $dir
if grep -q "test.url=" test.$username.properties
then
${sed} -i "s~test.url=.*~test.url=${url}~" test.$username.properties
else
(echo "" ; echo "test.url=${url}") >>test.$username.properties
fi
}
poshiSetTest(){
echo -n "Enter full test name and press [ENTER]: "
read testname
echo "$testname"
}
gitInfoTemplate(){
cd $dir
portalID="$(git log --pretty=format:'%H' -n 1)"
cd $pluginsDir
pluginsID="$(git log --pretty=format:'%H' -n 1)"
echo
echo "$v:"
echo "Tomcat 7.0.62 + MySQL 5.6 Portal $v GIT ID: $portalID."
echo "Plugins $v GIT ID: $pluginsID."
echo
read -rsp $'Press any key to continue...\n' -n1 key
}
updateFixPriorities(){
echo
echo -n "Enter New Priority and press [ENTER]: "
read priority
vim $outputDir/fp.txt
echo
cd $dir
local IFS=#
while read testcase testcommand;
do
testcasefile=$(find . -name "$testcase.testcase")
${sed} -i "s/name=\"${testcommand}\" priority=\".*\"/name=\"${testcommand}\" priority=\"${priority}\"/" $testcasefile
cd $dir
continue
done<$outputDir/fp.txt
echo "done"
echo "$priority's added"
read -rsp $'Press any key to continue...\n' -n1 key
}
addKnownIssues(){
echo
echo
vim $outputDir/addki.txt
echo
echo
echo -n "Enter Ticket to Add and press [ENTER]: "
read ticket
cd $dir
local IFS=#
while read testcase testcommand;
do
testcasefile=$(find . -name "$testcase.testcase")
${sed} -i "s/name=\"${testcommand}\"/known-issues=\"${ticket}\"\ name=\"${testcommand}\"/" $testcasefile
cd $dir
continue
done<$outputDir/addki.txt
echo "done"
echo "known-issues $ticket added"
read -rsp $'Press any key to continue...\n' -n1 key
}
getQATicketNumber(){
cd $dir
local IFS="-"
read -a elements <<< "$(git rev-parse --abbrev-ref HEAD)"
if [[ $v != *ee-* ]]
then
ticket=${elements[2]}
else
ticket=${elements[3]}
fi
echo "$ticket"
}
qaPullRequest(){
local ticket=$(getQATicketNumber)
git log -n 4
echo
printf "\e[31mTicket: LRQA-${ticket}\e[0m"
echo "Submit a Pull Request?"
echo "[y/n?]"
read -n 1 -r
if [[ $REPLY = y ]]
then
$gitpr submit --update-branch=${v} "https://issues.liferay.com/browse/LRQA-${ticket}" "${v}-qa-${ticket}"
else
echo "No"
fi
read -rsp $'Press any key to continue...\n' -n1 key
}
######################################################################################################################
##SUB MENUS###########################################################################################################
######################################################################################################################
poshiOption(){
while :
do
clear
testURL=$(cat $dir/test.$username.properties | grep "test.url=")
cat<<EOF
========================================
POSHI $v
$testname
$testURL
----------------------------------------
Choose Your Destiny:
(1) Poshi Runner (p) Pull Request
(2) Validate (s) Run Test Suite
(3) Pick New Test
(4) Format Source
(5) Set Test URL
(q)uit - go back
----------------------------------------
EOF
read -n1
echo
case "$REPLY" in
"1") poshiRunnerRun ;;
"2") poshiValidate ;;
"3") poshiSetTest ;;
"4") poshiFormat ;;
"5") poshiSetUrl ;;
"p") qaPullRequest ;;
"Q") echo "case sensitive!!" ;;
"q") break ;;
* ) echo "Not a valid option" ;;
esac
done
}
branchMenu(){
while :
do
clear
if [ "$public" = "true" ]
then
public="public"
fi
cd $dir
portalID="$(git log --pretty=format:'%H' -n 1)"
gitBranch="$(git rev-parse --abbrev-ref HEAD)"
cat<<EOF
============================================
$v $public
Git ID: $portalID
Git Branch: $gitBranch
--------------------------------------------
Please choose:
(1) Build Bundle (a) Add Known Issues
(2) Clear Enviroment (f) Update FP
(3) POSHI
(4) Deploy Plugins
(5) Git Info Template
(q)uit - Main Menu
--------------------------------------------
EOF
read -n1
echo
case "$REPLY" in
"1") bundleBuild ;;
"2") clearEnv ;;
"3") poshiSetTest ; poshiOption ;;
"4") pluginsDeploy ;;
"5") gitInfoTemplate ;;
"a") addKnownIssues ;;
"f") updateFixPriorities ;;
"Q") echo "case sensitive!!" ;;
"q") echo "quit"
break ;;
* ) echo "Not a valid option" ;;
esac
done
}
######################################################################################################################
##MAIN MENU###########################################################################################################
######################################################################################################################
while :
do
clear
cat<<EOF
Liferay Portal QA Tool
=====================================================
Main Menu
-----------------------------------------------------
Hello $name
Please choose a branch version:
(1) Master (r) 7.0.x
(2) ee-6.2.x (w) Master Wildfly
(3) ee-7.0.x
(4) ee-6.1.x
(5) ee-6.2.10
(6) Master EE
(7) 6.2.x
(q)uit
-----------------------------------------------------
EOF
read -n1
echo
case "$REPLY" in
"1") dir=$masterSourceDir bundleDir=$masterBundleDir pluginsDir=$masterPluginsDir v="master" db=$masterDB port=$masterPort jb="master" public="true" wf="false" branchMenu ;;
"2") dir=$ee62xSourceDir bundleDir=$ee62xBundleDir pluginsDir=$ee62xPluginsDir v="ee-6.2.x" db=$ee62xDB port=$ee62xPort jb="ee62x" branchMenu ;;
"3") dir=$ee70xSourceDir bundleDir=$ee70xBundleDir pluginsDir=$ee70xPluginsDir v="ee-7.0.x" db=$ee70xDB port=$ee70xPort jb="ee70x" wf="false" jb="false" branchMenu ;;
"4") dir=$ee61xSourceDir bundleDir=$ee61xBundleDir pluginsDir=$ee61xPluginsDir v="ee-6.1.x" db=$ee61xDB port=$ee61xPort jb="ee61x" branchMenu ;;
"5") dir=$ee6210SourceDir bundleDir=$ee6210BundleDir pluginsDir=$ee6210PluginsDir v="ee-6.2.10" db=$ee6210DB port=$ee6210Port jb="ee6210" branchMenu ;;
"6") dir=$eeMasterSourceDir bundleDir=$eeMasterBundleDir pluginsDir=$masterPluginsDir v="master" db=$eeMasterDB port=$eeMasterPort jb="master" branchMenu ;;
"7") dir=$ce62xSourceDir bundleDir=$ce62xBundleDir pluginsDir=$ce62xPluginsDir v="6.2.x" db=$ce62xDB port=$ce62xPort jb="62x" branchMenu ;;
"r") dir=$ce70xSourceDir bundleDir=$ce70xBundleDir pluginsDir=$ce70xPluginsDir v="7.0.x" db=$ce70xDB port=$ce70xPort jb="70x" branchMenu ;;
"l") lpsConverter ;;
"w") dir=$masterSourceDir bundleDir=$masterBundleDir pluginsDir=$masterPluginsDir v="master" db=$masterDB port=$masterPort jb="master" public="true" wf="true" branchMenu ;;
"Q") echo "case sensitive!!" ;;
"q") echo "quit"
exit ;;
* ) echo "Not a valid option" ;;
esac
done