curl / Mailing Lists / curl-library / Single Mail

curl-library

curl --version to show Release-Date: ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 12 May 2017 08:31:05 +0200 (CEST)

Hi all,

I've submitted PR #1474 [1] that introduces a new line in curl' --version
output, called "Release-Date:".

It shows the date defined in the public curl headers named LIBCURL_TIMESTAMP
which is set by the script that builds the release tarball. (It also changes
the format of that define to the simpler YYYY-MM-DD format.)

While this is a tool feature, I mention it here on the libcurl list since I
figure there will be one or two of you here that might get affected and have
some ideas/feedback on the exact procedure here.

This new logic also allows builders of curl to define CURL_PATCHSTAMP to a
date (in the same format) and then the Release-Date: line will include an
extra "security patched" date. That could then be used by builders who apply
patches to older versions to still show users something about what the curl
executable contains.

Doing "curl --version" with this patch on code from git makes it say:
  "Release-Date: [unreleased]"

Thoughts?

[1] = https://github.com/curl/curl/pull/1474

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-05-12