diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 15:46:46 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 15:46:46 +0000 |
commit | 7a433b7053eea6bd2270bdb42bc22bfb5ab8e815 (patch) | |
tree | db0a42a3cd4deaf7968c24ae3a877e7bef1f1ecf /build/scripts/build.sh | |
parent | d5bfcf5666a3c0502abc028800e3d0f43ae6d985 (diff) | |
download | moa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.tar.gz moa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.tar.bz2 moa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.zip |
Initial commit
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@4 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'build/scripts/build.sh')
-rw-r--r-- | build/scripts/build.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/build/scripts/build.sh b/build/scripts/build.sh new file mode 100644 index 000000000..33f5f78b3 --- /dev/null +++ b/build/scripts/build.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# +# Main build script for the MOA projects +# +# Author: Paul Ivancsics +# Version: $Id: build.sh,v 1.13 2003/05/07 18:52:02 peck Exp $ +# + + +PROJECTS=$1 +ALLPROJECTS="common spss.server id.server" + +shift +TARGETS=$* + +if [ -z "$JAVA_HOME" ]; then + echo "error: JAVA_HOME not defined"; + exit; +fi + +if [ -z "$PROJECTS" ] || [ "$PROJECTS" = "all" ]; then + PROJECTS=$ALLPROJECTS; +elif ! [ "$PROJECTS" = "common" ]; then + PROJECTS="common $PROJECTS"; +fi + +echo +echo "BUILDING PROJECT(S): $PROJECTS" +echo "BUILDING TARGET(S) : $TARGETS" + +for PROJ in $PROJECTS; do + sh ./runAnt.sh $PROJ $TARGETS; +done |