From: Michael Sweet Date: Tue, 15 Mar 2016 16:11:03 +0000 (-0400) Subject: Add date to log files. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=608728d8a41e01420116513698aa75f982a02390;p=thirdparty%2Fcups.git Add date to log files. --- diff --git a/build.sh b/build.sh index d354b33e8f..15ab96da21 100755 --- a/build.sh +++ b/build.sh @@ -212,12 +212,14 @@ fi if test "x$BUILDNOTIFY" != x -a -x temp/bin/sendbuildlog -a $quiet = yes; then attachments="" - if test -f stable/test/cups-str-2.1-$USER.html; then - attachments="$attachments -a stable/test/cups-str-2.1-$USER.html" + date=`date "+%Y-%m-%d"` + + if test -f stable/test/cups-str-2.1-$date-$USER.html; then + attachments="$attachments -a stable/test/cups-str-2.1-$date-$USER.html" fi - if test -f developent/test/cups-str-2.2-$USER.html; then - attachments="$attachments -a developent/test/cups-str-2.2-$USER.html" + if test -f developent/test/cups-str-2.2-$date-$USER.html; then + attachments="$attachments -a developent/test/cups-str-2.2-$date-$USER.html" fi temp/bin/sendbuildlog -b $status -s "$BUILDSUBJECT r$rev" $attachments "$BUILDNOTIFY" build.log