compress and base64 encode the package log
authorSteve McIntyre <steve@einval.com>
Wed, 21 Dec 2016 02:12:38 +0000 (02:12 +0000)
committerSteve McIntyre <steve@einval.com>
Wed, 21 Dec 2016 02:12:38 +0000 (02:12 +0000)
strace-build-test

index 6ffaadc..bc20343 100755 (executable)
@@ -150,8 +150,12 @@ EOF
 
     rm -rf ~/build/strace/package-test
     rm -f ~/build/strace/inside-schroot-test.sh
-    cat typescript | \
+    gzip -9 typescript
+    FILE=typescript
+    (echo "START $FILE" ; \
+     base64 < $FILE ; \
+     echo "END ¬£FILE") | \
        mailx -s "$DSC package build log: $ARCH on $HOSTNAME " \
              steve@einval.com
-    rm -f typescript
+    rm -f typescript.gz
 fi