[jboss-cvs] JBossAS SVN: r67260 - in projects/aop/branches/joinpoint_graph: build and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 19 13:29:24 EST 2007


Author: flavia.rainone at jboss.com
Date: 2007-11-19 13:29:24 -0500 (Mon, 19 Nov 2007)
New Revision: 67260

Modified:
   projects/aop/branches/joinpoint_graph/aop/build.sh
   projects/aop/branches/joinpoint_graph/build/build.sh
Log:
Scripts were not working with directory names that contain ' ' on linux.

Modified: projects/aop/branches/joinpoint_graph/aop/build.sh
===================================================================
--- projects/aop/branches/joinpoint_graph/aop/build.sh	2007-11-19 17:29:15 UTC (rev 67259)
+++ projects/aop/branches/joinpoint_graph/aop/build.sh	2007-11-19 18:29:24 UTC (rev 67260)
@@ -126,7 +126,7 @@
 	done
 
 	# make sure we get back
-	cd $_cwd
+	cd "$_cwd"
 
 	if [ "$cwd" != "$ROOT" ]; then
 	    found="true"
@@ -159,9 +159,9 @@
 
     # execute in debug mode, or simply execute
     if [ "x$ANT_DEBUG" != "x" ]; then
-       /bin/sh -x $ANT $ANT_OPTIONS "$@"
+       /bin/sh -x "$ANT" $ANT_OPTIONS "$@"
     else
-       exec $ANT $ANT_OPTIONS "$@"
+       exec "$ANT" $ANT_OPTIONS "$@"
     fi
 }
 

Modified: projects/aop/branches/joinpoint_graph/build/build.sh
===================================================================
--- projects/aop/branches/joinpoint_graph/build/build.sh	2007-11-19 17:29:15 UTC (rev 67259)
+++ projects/aop/branches/joinpoint_graph/build/build.sh	2007-11-19 18:29:24 UTC (rev 67260)
@@ -126,7 +126,7 @@
 	done
 
 	# make sure we get back
-	cd $_cwd
+	cd "$_cwd"
 
 	if [ "$cwd" != "$ROOT" ]; then
 	    found="true"
@@ -152,16 +152,16 @@
 
     # change to the directory where the script lives so users are not forced
     # to be in the same directory as build.xml
-    cd $DIRNAME
+    cd "$DIRNAME"
 
     # export some stuff for ant
     export ANT ANT_HOME ANT_OPTS
 
     # execute in debug mode, or simply execute
     if [ "x$ANT_DEBUG" != "x" ]; then
-	/bin/sh -x $ANT $ANT_OPTIONS "$@"
+	/bin/sh -x "$ANT" $ANT_OPTIONS "$@"
     else
-	exec $ANT $ANT_OPTIONS "$@"
+	exec "$ANT" $ANT_OPTIONS "$@"
     fi
 }
 




More information about the jboss-cvs-commits mailing list