201f16896284591142d885f3142a2dbe06bd43d5
[jprojects-scripts.git] / .jprojects.sh
1 #!/bin/bash
2
3 LIST="jcore jcore-logger-lib jcore-logger-ejb jcoreee \
4         jcountry-core jcountry-lib jcountry-ejb \
5         jphone-core \
6         jcontacts-core jcontacts-business-core jcontacts-lib jcontacts-ejb \
7         juser-core juser-lib juser-ejb \
8         jletter-core jletter-lib jletter-ejb \
9         jcore-swing \
10         jshop-core jshop-ee-lib jshop-ejb \
11         jshop-receipt-lib jshop-receipt-ejb"
12 LIST="${LIST}
13         pizzaservice-lib pizzaservice pizzaservice-swing pizzaservice-war \
14         jjobs-lib jjobs-ejb jjobs jjobs-war \
15         addressbook-lib addressbook-ejb addressbook addressbook-war addressbook-uml"
16
17 # BROKEN:
18 LIST="${LIST} addressbook-swing"
19
20 # Own home directory
21 declare -r JPROJECTS_HOME="${PWD}"
22
23 # Test on .git availability"
24 for project in ${LIST}; do
25         if [ ! -d "${project}" ]
26         then
27                 echo "$0: Project '${project}' not created."
28                 exit 1
29         elif [ ! -d "${project}" ]
30         then
31                 echo "$0: Project '${project}' is no GIT project."
32                 exit 1
33         fi
34 done