The last commit from my workplace removed push-stick.sh, which was not intended.
[jprojects-scripts.git] / .jprojects.sh
1 #!/bin/bash
2
3 # Libraries and EJBs
4 LIST="jcore jcoreee \
5         jcore-logger-lib jcore-logger-ejb \
6         jcountry-core jcountry-lib \
7         jphone-core jphone-lib \
8         jcontacts-core jcontacts-business-core jcontacts-lib \
9         juser-core juser-lib \
10         jaddressbook-core \
11         jletter-core jletter-lib jletter-ejb \
12         jaddressbook-core \
13         jmailer-ee \
14         jcore-swing \
15         jcustomer-core jcustomer-lib \
16         jshop-core jshop-ee-lib jshop-ejb \
17         jshop-receipt-lib jshop-receipt-ejb"
18
19 # Applications and their special libs/EJBs
20 LIST="${LIST}
21         pizzaservice-lib pizzaservice-mailer pizzaservice-ejb pizzaservice pizzaservice-swing pizzaservice-war \
22         jjobs-lib jjobs-mailer jjobs-ejb jjobs jjobs-war \
23         jratecalc-lib jratecalc-mailer jratecalc-ejb jratecalc jratecalc-war \
24         addressbook-lib addressbook-mailer addressbook-ejb addressbook addressbook-war addressbook-uml"
25
26 # Tools repository
27 LIST="${LIST} jprojects-scripts"
28
29 # BROKEN:
30 LIST="${LIST} addressbook-swing"
31
32 # Own home directory
33 declare -r JPROJECTS_HOME="${PWD}"
34
35 # ant binary
36 ANT_BIN=`which ant`
37
38 # Test on .git availability"
39 for project in ${LIST}; do
40         if [ ! -d "${project}" ]
41         then
42                 echo "$0: Project '${project}' not created."
43         elif [ ! -f "${project}/.git/config" ]
44         then
45                 echo "$0: Project '${project}' is no GIT project."
46                 exit 1
47         fi
48 done