roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eli...@apache.org
Subject svn commit: r395589 - /incubator/roller/trunk/build.sh
Date Thu, 20 Apr 2006 13:45:46 GMT
Author: eliast
Date: Thu Apr 20 06:45:45 2006
New Revision: 395589

URL: http://svn.apache.org/viewcvs?rev=395589&view=rev
Log:
Added support for cygwin by setting the appropriate path separator.

--from an email by stefan.eissing@greenbytes.de to roller-dev. Thanks!


Modified:
    incubator/roller/trunk/build.sh

Modified: incubator/roller/trunk/build.sh
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/build.sh?rev=395589&r1=395588&r2=395589&view=diff
==============================================================================
--- incubator/roller/trunk/build.sh (original)
+++ incubator/roller/trunk/build.sh Thu Apr 20 06:45:45 2006
@@ -1,17 +1,31 @@
 #!/bin/bash
+
+# OS specific support.  $var _must_ be set to either true or false.
+cygwin=false
+os400=false
+case "`uname`" in
+CYGWIN*) cygwin=true;;
+OS400*) os400=true;;
+esac
+
+CPSEP=":"
+if $cygwin; then CPSEP=";"; fi
+
 if [ "$JAVA_HOME" = "" ] ; then
 	echo You must set JAVA_HOME to point to your Java JDK install directory
 	exit 1
 fi
 
 rocp=${JAVA_HOME}/lib/tools.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/ant.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/ant-launcher.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/ant-junit.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/ant-commons-net.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/commons-net-1.2.2.jar
-rocp=${rocp}:./tools/buildtime/ant-1.6.2/jakarta-oro-2.0.8.jar
-rocp=${rocp}:./tools/buildtime/junit-3.8.1.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/ant.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/ant-launcher.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/ant-junit.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/ant-commons-net.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/commons-net-1.2.2.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/ant-1.6.2/jakarta-oro-2.0.8.jar
+rocp=${rocp}${CPSEP}./tools/buildtime/junit-3.8.1.jar
+
+echo $rocp
 
 ${JAVA_HOME}/bin/java -Xmx512m -Djava.home=${JAVA_HOME} -classpath ${rocp} org.apache.tools.ant.Main
$1 $2 $3 $4 $5
 



Mime
View raw message