aboutsummaryrefslogtreecommitdiff
path: root/build/scripts/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/scripts/build.sh')
-rw-r--r--build/scripts/build.sh34
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