[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 138/254: curl: show the libcurl release date in --v
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 138/254: curl: show the libcurl release date in --version output |
Date: |
Sat, 17 Jun 2017 16:52:50 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.
commit 180c75eb63ae95c41c692957ccd13321e44d4e9e
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun May 14 17:09:45 2017 +0200
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
---
include/curl/curlver.h | 6 +++---
maketgz | 4 ++--
src/tool_help.c | 6 ++++++
3 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/include/curl/curlver.h b/include/curl/curlver.h
index 5d3e160f0..227571cd3 100644
--- a/include/curl/curlver.h
+++ b/include/curl/curlver.h
@@ -64,11 +64,11 @@
* timestamp is not stored in git, as the timestamp is properly set in the
* tarballs by the maketgz script.
*
- * The format of the date should follow this template:
+ * The format of the date follows this template:
*
- * "Mon Feb 12 11:35:33 UTC 2007"
+ * "2007-11-23"
*/
-#define LIBCURL_TIMESTAMP "DEV"
+#define LIBCURL_TIMESTAMP "[unreleased]"
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
#define CURL_AT_LEAST_VERSION(x,y,z) \
diff --git a/maketgz b/maketgz
index 2cc8e1364..a1509819c 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' \
diff --git a/src/tool_help.c b/src/tool_help.c
index 668499cca..46aae4527 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -516,6 +516,12 @@ void tool_version_info(void)
const char *const *proto;
printf(CURL_ID "%s\n", curl_version());
+#ifdef CURL_PATCHSTAMP
+ printf("Release-Date: %s, security patched: %s\n",
+ LIBCURL_TIMESTAMP, CURL_PATCHSTAMP);
+#else
+ printf("Release-Date: %s\n", LIBCURL_TIMESTAMP);
+#endif
if(curlinfo->protocols) {
printf("Protocols: ");
for(proto = curlinfo->protocols; *proto; ++proto) {
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 155/254: cmake: Add CURL_CA_FALLBACK to curl_config.h.cmake, (continued)
- [GNUnet-SVN] [gnurl] 155/254: cmake: Add CURL_CA_FALLBACK to curl_config.h.cmake, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 77/254: RELEASE-NOTES: synced with 862b02f89, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 189/254: examples/sampleconv.c: indent changes, made callbacks static, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 82/254: CURLINFO_EFFECTIVE_URL.3: add example, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 56/254: file: use private buffer for C-L output, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 166/254: redirect: store the "would redirect to" URL when max redirs is reached, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 154/254: RELEASE-NOTES: synced with 052a14e3c, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 252/254: mk-lib1521.pl: updated to match the test changes in 916ec30a, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 204/254: coverage: run event tests too, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 25/254: nss: factorize out nss_{un, }load_module to separate fncs, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 138/254: curl: show the libcurl release date in --version output,
gnunet <=
- [GNUnet-SVN] [gnurl] 88/254: schannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 76/254: Telnet: Write full buffer instead of byte-by-byte, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 146/254: darwinssl: Fix exception when processing a client-side certificate file if no error was raised by the API but the SecIdentityRef was null, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 101/254: opts: examples added to 8 more libcurl option man pages, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 130/254: pipeline: fix mistakenly trying to pipeline POSTs, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 165/254: LDAP: fixed checksrc issue, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 90/254: sockfilt.c: shortened too long line, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 136/254: lib510: don't write past the end of the buffer if it's too small, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 21/254: transfer: remove 'uploadbuf' pointer and cleanup readwrite_upload(), gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 96/254: docs/opts: 23 more man pages now have examples, gnunet, 2017/06/17