]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add date to log files.
authorMichael Sweet <msweet@msweet-imac.local>
Tue, 15 Mar 2016 16:11:03 +0000 (12:11 -0400)
committerMichael Sweet <msweet@msweet-imac.local>
Tue, 15 Mar 2016 16:11:03 +0000 (12:11 -0400)
build.sh

index d354b33e8f7f577762fc29dcfe29129ab7145136..15ab96da212e5804dd4931d28c59b12dc3e6aabd 100755 (executable)
--- 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