From: Jan-Benedict G. <jb...@us...> - 2006-01-05 19:40:29
|
Update of /cvsroot/linux-vax/toolchain/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14935 Modified Files: run_test_build.sh Log Message: - Remote unneeded empty argument for `echo'. - Accomodate to new logging infrastructure. Index: run_test_build.sh =================================================================== RCS file: /cvsroot/linux-vax/toolchain/scripts/run_test_build.sh,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- run_test_build.sh 28 Dec 2005 18:27:44 -0000 1.18 +++ run_test_build.sh 5 Jan 2006 19:40:21 -0000 1.19 @@ -2,7 +2,7 @@ if [ $# -lt 7 -o $# -gt 8 ]; then echo "$0 target /path/to/build-directory /path/to/vax_toolchain_config ma...@ad... /path/to/build.okay /path/to/build.not-okay /path/to/lockfile {/path/to/testresult_dir}" >&2 - echo "" >&2 + echo >&2 echo "target -- Something like vax-linux or vax-linux-uclibc" >&2 echo "/path/to/build-directory -- This is where all the stuff is build in, /tmp/vax-linux would be a nice name." >&2 echo "/path/to/vax_toolchain_config -- File containing various settings" >&2 @@ -48,7 +48,7 @@ echo "X-Build-Robot-Target: ${TARGET}" echo "X-Build-Robot-Start: ${START_TIME} UTC" echo "X-Build-Robot-Stop: ${STOP_TIME} UTC" - echo "" + echo ) | mail -s "$1" ${SEND_MAIL_TO} } @@ -56,17 +56,17 @@ if [ -f "${LOCKFILE}" ]; then ( echo "Hello!" - echo "" + echo echo "Unfortunately, the lock file (${LOCKFILE})" echo "is already (or still) there so I'll abort and try" echo "again later. Maybe that'll work." - echo "" + echo echo "If you continue to get this message, please check" echo "if the lockfile is stale and remove it if neccessary." - echo "" + echo echo "Thanks," echo " Your ${I_AM}" - echo "" + echo ) | send_stdin "Found lockfile" exit 1 else @@ -92,18 +92,18 @@ if ! OUTPUT="`update_upstream_cvs_sandboxes.sh 2>&1`"; then ( echo "Hello!" - echo "" + echo echo "Seems updating the source code failed. I'll try" echo "again later on, but for reference, here are the" echo "last 30 lines of my attempt:" - echo "" + echo echo "================== 8< -------------------------" echo "${OUTPUT}" | tail -n 30 echo "------------------ >8 =========================" - echo "" + echo echo "Thanks," echo " Your ${I_AM}" - echo "" + echo ) | send_stdin "Updating sources failed" unlock exit 1 @@ -118,17 +118,17 @@ # Build is okay ( echo "Hello!" - echo "" + echo echo "Seems building for target ${TARGET} worked well," echo "so here's the difference of the build log, if any:" - echo "" + echo echo "================== 8< -------------------------" compare_buildlog.sh "${BUILD_OKAY}" "${BUILD_DIRECTORY}/build.log" echo "------------------ >8 =========================" - echo "" + echo echo "Have a nice day," echo " Your ${I_AM}" - echo "" + echo ) | send_stdin "Successful build for ${TARGET}" mv "${BUILD_DIRECTORY}/build.log" "${BUILD_OKAY}" unlock @@ -137,22 +137,22 @@ # Build fucked up ( echo "Hello!" - echo "" + echo echo "Seems building for target ${TARGET} failed :-(" - echo "" + echo echo "We managed to build these parts:" - echo "" - egrep '(^#|^$)' "${BUILD_DIRECTORY}/build.log" - echo "" + echo + grep '^#-St' "${BUILD_DIRECTORY}/build.log" + echo echo "...and this are the 100 last lines of the build.log:" - echo "" + echo echo "================== 8< -------------------------" tail -100 "${BUILD_DIRECTORY}/build.log" echo "------------------ >8 =========================" - echo "" + echo echo "Have a nice day," echo " Your ${I_AM}" - echo "" + echo ) | send_stdin "Failed build for ${TARGET}" mv "${BUILD_DIRECTORY}/build.log" "${BUILD_BAD}" unlock |