From 4f4eae10516e674d85a5062c566f919dcad68a47 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 4 Jan 2016 22:41:52 +0100 Subject: Archive serial, parseable date header Get the archive serial from upstream and put it into our file, so easier to see when we last updates. Also put a parseable date header into the tracefile --- bin/ftpsync | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ftpsync b/bin/ftpsync index 788ffcc..6fbcbca 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -626,7 +626,13 @@ if [ "xtruex" = "x${SYNCSTAGE2}x" ] || [ "xtruex" = "x${SYNCALL}x" ]; then log "Creating a ${EXTENDEDTRACE} trace file" if [ -d "$(dirname "${TO}/${TRACE}")" ]; then { + FILESOA=$(awk '/serial/ { print $3 }' ${TO}/project/trace/master || echo unknown ) + echo "Archive serial: ${FILESOA}" + LC_ALL=POSIX LANG=POSIX date -u + rfc822date=$(LC_ALL=POSIX LANG=POSIX date -u -R) + echo "Date: ${rfc822date}" + if [ "xdatex" != "x${EXTENDEDTRACE}x" ]; then echo "Used ftpsync version: ${VERSION}" echo "Running on host: ${TRACEHOST}" -- cgit v1.2.3