]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Sending logs to buildspy.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Oct 2008 22:04:42 +0000 (00:04 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Oct 2008 22:04:42 +0000 (00:04 +0200)
tools/make-buildspy
tools/make-include

index 373d1cab7fedec9504540df6befe09bd4003df19..dfd5d664e122596c843a5d2bb18825f2d1facc32 100755 (executable)
@@ -22,7 +22,7 @@
 BUILD_SPY_FILENAME=$BASEDIR/.build_spy
 
 build_spy() {
-       local KEY VAL 
+       local KEY
        KEY=$1; shift 1
        echo -n "&${KEY}=$*" >> $BUILD_SPY_FILENAME
 }
@@ -31,6 +31,11 @@ build_spy() {
 build_spy_send_profile() {
        build_spy hostname $HOSTNAME
        build_spy distcc   ${DISTCC_PORT-3632}
+       build_spy jobs     ${DISTCC_JOBS}
+}
+
+build_spy_escape() {
+       base64 || echo "Base64 error."
 }
 
 if [ "$(basename $0)" == "make-buildspy" ]; then
index 74f124c8280e674ceda1a4e356c89e3af7c25064..db83c6bfac1b1aaa377df54c02da726c53444a55 100644 (file)
@@ -80,6 +80,7 @@ exiterror() {
        stdumount
        dialogerror $*
        build_spy state error
+       build_spy log $(tail -n 20 $LOGFILE | build_spy_escape)
        touch $FAILED
        rm -f $RUNNING 2>/dev/null
        exit 1