summaryrefslogtreecommitdiff
path: root/maketgz
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-14 17:09:45 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:26:19 +0000
commit00bbdfe8cdfc0ee59d3c75f71a907f709b231eb6 (patch)
tree92304d4e444774edcd0c51afaf58f30dab3a2b56 /maketgz
parent7f5dd797c735ccd92a8c62afbe31cf01f3f0af53 (diff)
downloadgnurl-00bbdfe8cdfc0ee59d3c75f71a907f709b231eb6.tar.gz
gnurl-00bbdfe8cdfc0ee59d3c75f71a907f709b231eb6.tar.bz2
gnurl-00bbdfe8cdfc0ee59d3c75f71a907f709b231eb6.zip
curl: show the libcurl release date in --version output
... and support and additional "security patched" date for those who enhance older versions that way. Pass on the define CURL_PATCHSTAMP with a date for that. Building with non-release headers shows the date as [unreleased]. Also: this changes the date format generated in the curlver.h file to be "YYYY-MM-DD" (no name of the day or month, no time, no time zone) to make it easier on the eye and easier to parse. Example (new) date string: 2017-05-09 Suggested-by: Brian Childs Closes #1474
Diffstat (limited to 'maketgz')
-rwxr-xr-xmaketgz4
1 files changed, 2 insertions, 2 deletions
diff --git a/maketgz b/maketgz
index c12f54428..e6d950a1d 100755
--- a/maketgz
+++ b/maketgz
@@ -67,8 +67,8 @@ if test -z "$only"; then
PLIST="$PLIST$ext"
fi
-# requires a date command that knows -u for UTC time zone
-datestamp=`LC_TIME=C date -u`
+# requires a date command that knows + for format
+datestamp=`date +"%F"`
# Replace version number in header file:
sed -i -e 's/^#define LIBCURL_VERSION .*/#define LIBCURL_VERSION "'$libversion'"/g' \