crossley 2004/05/26 17:47:19
Modified: . build.sh Log: Exporting of environment variables compatiable with both Bourne and Bash shells. Submitted by: Christopher Painter-Wakefield Revision Changes Path 1.13 +10 -6 cocoon-2.1/build.sh Index: build.sh =================================================================== RCS file: /home/cvs/cocoon-2.1/build.sh,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- build.sh 5 May 2004 21:03:30 -0000 1.12 +++ build.sh 27 May 2004 00:47:19 -0000 1.13 @@ -1,4 +1,5 @@ #!/bin/sh + # Copyright 1999-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -12,7 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# + chmod u+x ./tools/bin/antRun chmod u+x ./tools/bin/ant @@ -32,18 +33,21 @@ # ----- Use Ant shipped with Cocoon. Ignore installed in the system Ant OLD_ANT_HOME="$ANT_HOME" -export ANT_HOME=tools +ANT_HOME=tools OLD_ANT_OPTS="$ANT_OPTS" -export ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed" +ANT_OPTS="-Xms32M -Xmx512M -Djava.endorsed.dirs=lib/endorsed" +export ANT_HOME ANT_OPTS "$ANT_HOME/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs $@ # ----- Restore ANT_HOME and ANT_OPTS -export ANT_HOME="$OLD_ANT_HOME" +ANT_HOME="$OLD_ANT_HOME" +ANT_OPTS="$OLD_ANT_OPTS" +export ANT_HOME ANT_OPTS unset OLD_ANT_HOME -export ANT_OPTS="$OLD_ANT_OPTS" unset OLD_ANT_OPTS # ----- Restore CLASSPATH -export CLASSPATH="$OLD_CLASSPATH" +CLASSPATH="$OLD_CLASSPATH" +export CLASSPATH unset OLD_CLASSPATH
