kschrader 01/08/01 13:37:57
Modified: . currenttdk.sh
Log:
Updated for all the new build changes, added the list of projects that are needed to
build the TDK
Revision Changes Path
1.3 +63 -20 jakarta-turbine-tdk/currenttdk.sh
Index: currenttdk.sh
===================================================================
RCS file: /home/cvs/jakarta-turbine-tdk/currenttdk.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- currenttdk.sh 2001/07/23 16:16:24 1.2
+++ currenttdk.sh 2001/08/01 20:37:57 1.3
@@ -1,8 +1,27 @@
#!/bin/sh
# This script updates all of the source
-# and then
-# builds a fresh and clean test TDK
+# and then builds a fresh and clean test TDK
+#
+# Define the environment variable TDKCVS
+# equal to "true" in order to update all
+# of the projects before building them
+#
+# In order for it to work, the following
+# projects need to be checked out in
+# parallel to this one and your build
+# environment must be preconfigured to
+# build them:
+#
+# jakarta-regexp
+# jakarta-servletapi-4
+# jakarta-tomcat-4.0
+# jakarta-turbine-torque
+# jakarta-turbine-fulcrum
+# jakarta-turbine
+# jakarta-turbine-flux
+# hSQL (in dir hypersonic)
+#
# Update Regexp (Just in case)
(
@@ -10,7 +29,9 @@
echo BUILDING REGEXP
echo -----------------
cd ../jakarta-regexp/
- cvs up -Pd
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
cd build
./build-regexp.sh clean
./build-regexp.sh
@@ -22,7 +43,9 @@
echo BUILDING SERVLETAPI
echo ---------------------
cd ../jakarta-servletapi-4/
- cvs up -Pd
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
ant clean
ant dist
)
@@ -33,9 +56,11 @@
echo BUILDING TOMCAT
echo -----------------
cd ../jakarta-tomcat-4.0/
- cvs up -Pd
- ./build.sh clean
- ./build.sh dist
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
+ ant clean
+ ant dist
)
# Build Torque
@@ -44,10 +69,24 @@
echo BUILDING TORQUE
echo -----------------
cd ../jakarta-turbine-torque/
- cvs up -Pd
- cd build
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
ant clean
- ant dist
+ ant install-jar
+)
+
+# Build Fulcrum
+(
+ echo ------------------
+ echo BUILDING FULCRUM
+ echo ------------------
+ cd ../jakarta-turbine-fulcrum/
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
+ ant clean
+ ant install-jar
)
# Build Turbine
@@ -56,8 +95,9 @@
echo BUILDING TURBINE
echo ------------------
cd ../jakarta-turbine/
- cvs up -Pd
- cd build
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
ant clean
ant
)
@@ -68,10 +108,11 @@
echo BUILDING FLUX
echo ---------------
cd ../jakarta-turbine-flux/
- cvs up -Pd
- cd build
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
ant clean
- ant
+ ant jar
)
# Build Hypersonic
@@ -80,7 +121,9 @@
echo BUILDING hSQL
echo ------------------
cd ../hypersonic
- cvs up -Pd
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
cd src
ant clean
ant jar
@@ -91,19 +134,19 @@
echo ------------------
echo BUILDING THE TDK
echo ------------------
- cvs up -Pd
- cd build
+ if $TDKCVS = "true"
+ then cvs up -Pd
+ fi
ant clean
ant
)
# Get the current version
-cd build
+
VERSION=`grep ^tdk\.version build.properties | sed 's/tdk\.version *= *//'`
echo ------------------------
echo TDK VERSION ${VERSION}
echo ------------------------
-cd ..
# Move to the assembled TDK and generate
# the sample application.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]