From: Heiko Z. <smi...@us...> - 2004-09-06 14:13:14
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7329/scripts Modified Files: functions build.sh Log Message: always return 0 when stripping beep when error occurs Index: functions =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/functions,v retrieving revision 1.55 retrieving revision 1.56 diff -u -d -r1.55 -r1.56 --- functions 22 Jul 2004 16:54:52 -0000 1.55 +++ functions 6 Sep 2004 14:13:04 -0000 1.56 @@ -23,6 +23,7 @@ { echo "removing debug symbols from binaries" find ./ -type f -exec strip -p --strip-debug '{}' ';' 1> /dev/null 2>/dev/null + exit 0 } # create directories given in $2 @@ -499,3 +500,15 @@ fi fi } + +function errorbeep { + echo -n $'\a' + sleep 1 + echo -n $'\a' + sleep 1 + echo -n $'\a' + sleep 1 + echo -n $'\a' + sleep 1 + echo -n $'\a' +} Index: build.sh =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/build.sh,v retrieving revision 1.82 retrieving revision 1.83 diff -u -d -r1.82 -r1.83 --- build.sh 22 Aug 2004 12:21:01 -0000 1.82 +++ build.sh 6 Sep 2004 14:13:04 -0000 1.83 @@ -1,4 +1,4 @@ -#!/bin/bash +# #!/bin/bash # $Source$ # $Revision$ # $Date$ @@ -116,6 +116,7 @@ if [ ! -d $SRCDIR ]; then echo "ERROR" echo "Sources not found, exiting" + errorbeep exit 1 fi @@ -173,6 +174,7 @@ if ! $MYDIR/$SCRIPT $CMD; then echo "ERROR" echo "$MYDIR/$SCRIPT $CMD failed" + errorbeep exit 1 fi popd @@ -254,6 +256,7 @@ if [ -z "$DISTCC_HOSTS" ]; then echo "ERROR" echo "DISTCC_HOSTS is not defined!" + errorbeep exit 1 else export DISTCC_HOSTS @@ -297,6 +300,7 @@ echo "ERROR" echo "$MYDIR/$SCRIPT not found" echo "(LINK=${LINK} - SCRIPT=${SCRIPT}" + errorbeep exit 1 fi if [ -f ${DONEFILE} -a -z "$RUN_ONLY_CMD" ]; then @@ -339,6 +343,7 @@ echo "$MYDIR/$SCRIPT $CMD failed" echo "\"FAILED\"" >> $WORKDIR/LOGS/build_time.csv echo "check log file $WORKDIR/LOGS/$CMD/$SCRIPT for details" + errorbeep exit 1 else echo "\"OK\"" >> $WORKDIR/LOGS/build_time.csv |