From: Jason D. <us...@us...> - 2002-10-07 23:04:20
|
User: user57 Date: 02/10/07 16:04:20 Modified: jboss.net build.sh Log: o minor changes to build.sh Revision Changes Path 1.9 +9 -7 contrib/jboss.net/build.sh Index: build.sh =================================================================== RCS file: /cvsroot/jboss/contrib/jboss.net/build.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- build.sh 5 Oct 2002 12:29:09 -0000 1.8 +++ build.sh 7 Oct 2002 23:04:19 -0000 1.9 @@ -8,7 +8,7 @@ ## @author Jason Dillon <ja...@pl...> ## -# $Id: build.sh,v 1.8 2002/10/05 12:29:09 user57 Exp $ +# $Id: build.sh,v 1.9 2002/10/07 23:04:19 user57 Exp $ PROGNAME=`basename $0` DIRNAME=`dirname $0` @@ -22,14 +22,16 @@ MODULE_ROOT=`cd $DIRNAME; pwd` export TOOLS_ROOT MODULE_ROOT DEBUG TRACE - # Where is the target file? + # Where is the target script? target="$TOOLS_ROOT/bin/$PROGNAME" if [ ! -f "$target" ]; then - echo "${PROGNAME}: <ERROR> The target executable does not exist: $target" - echo + echo "${PROGNAME}: *ERROR* The target executable does not exist:" + echo "${PROGNAME}:" + echo "${PROGNAME}: $target" + echo "${PROGNAME}:" echo "${PROGNAME}: Please make sure you have checked out the 'tools' module" echo "${PROGNAME}: and make sure it is up to date." - exit 1 + exit 2 fi # Get busy yo! @@ -37,9 +39,9 @@ echo "${PROGNAME}: Executing: /bin/sh $target $@" fi if [ "x$TRACE" = "x" ]; then - exec /bin/sh $target $@ + exec /bin/sh $target "$@" else - exec /bin/sh -x $target $@ + exec /bin/sh -x $target "$@" fi } |