my echo statements had leading '$', how did they get there?
I added to the test command so that you can see exactly how it was called. change the example to show how --tree now works. git-svn-id: svn://10.0.0.236/trunk@108079 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -16,7 +16,7 @@ LOCKFILE=/var/lock/subsys/build
|
||||
|
||||
|
||||
build_args="--daemonize --buildcf $BUILDCF"
|
||||
build_args="$build_args --build construct -- --tree $TREE"
|
||||
build_args="$build_args --build construct --tree $TREE"
|
||||
|
||||
|
||||
# Source function library.
|
||||
@@ -28,7 +28,7 @@ build_args="$build_args --build construct -- --tree $TREE"
|
||||
RETVAL=0
|
||||
|
||||
start () {
|
||||
echo -n $"Starting Build: "
|
||||
echo -n "Starting Build: "
|
||||
daemon --user build $BUILDSCRIPT $build_args
|
||||
RETVAL=$?
|
||||
echo
|
||||
@@ -36,14 +36,17 @@ start () {
|
||||
}
|
||||
|
||||
test () {
|
||||
# print out the build script for examination
|
||||
# print out the build command and the build script for examination
|
||||
echo
|
||||
echo $BUILDSCRIPT --test $build_args
|
||||
echo
|
||||
$BUILDSCRIPT --test $build_args
|
||||
RETVAL=$?
|
||||
echo
|
||||
}
|
||||
|
||||
stop () {
|
||||
echo -n $"Stopping Build: "
|
||||
echo -n "Stopping Build: "
|
||||
killproc $BUILDSCRIPT
|
||||
RETVAL=$?
|
||||
echo
|
||||
@@ -80,7 +83,7 @@ case "$1" in
|
||||
status build
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: build {start|stop|restart|reload|condrestart|status|test}"
|
||||
echo "Usage: build {start|stop|restart|reload|condrestart|status|test}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user