Skip to content

curl: show the libcurl release date in --version output - #1474

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/curl-version-date
Closed

curl: show the libcurl release date in --version output#1474
bagder wants to merge 1 commit into
masterfrom
bagder/curl-version-date

Conversation

@bagder

@bagder bagder commented May 9, 2017

Copy link
Copy Markdown
Member

... and support and additional "security patched" date for those who
enhance older versions that way.

Also: change the date format generated in the curlver.h file to only be
"NNN DD YYYY" (no name of day, no time, no time zone) to make it easier
on the eye and easier to parse. Example (new) date string: "May 09
2017".

Suggested-by: Brian Childs

@mention-bot

Copy link
Copy Markdown

@bagder, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yangtse, @captain-caveman2k and @michael-o to be potential reviewers.

@michael-o

Copy link
Copy Markdown
Contributor

Counterproposal, be language-agnostic, use ISO 8601: %F

@bagder

bagder commented May 9, 2017

Copy link
Copy Markdown
Member Author

use ISO 8601: %F

Not a bad idea...

@michael-o

Copy link
Copy Markdown
Contributor

...and the reason for rejecting?

@bagder
bagder force-pushed the bagder/curl-version-date branch from 8d4c69a to 90ec603 Compare May 9, 2017 21:21
@jay

jay commented May 11, 2017

Copy link
Copy Markdown
Member

Isn't Date: a bit ambiguous, it could mean compile date or release date. How about Release-Date:

@bagder

bagder commented May 11, 2017

Copy link
Copy Markdown
Member Author

How about Release-Date:

Yes I think that looks better. And with the shorter date format the line is still reasonably sized.

I also think I need to come up with something nicer when building from git as right now it makes the date become "DEV" which I'm sure will cause some issues going forward.

@bagder
bagder force-pushed the bagder/curl-version-date branch from 90ec603 to 16e6352 Compare May 11, 2017 06:39
@bagder

bagder commented May 11, 2017

Copy link
Copy Markdown
Member Author

Pushed on update now that uses Release-Date: and when building from non-released headers it uses the date [unreleased]...

@jay

jay commented May 11, 2017

Copy link
Copy Markdown
Member

That's implied with DEV, why not just suppress the line in that case

@bagder

bagder commented May 11, 2017

Copy link
Copy Markdown
Member Author

You think suppressing is better? I actually like seeing and stating that it isn't a "blessed" release build and suppressing it makes it less obvious...

It occurred to me after my last update here that I could get an [unrelased] date string in there simply by changing DEV in the header so I might do that...

... 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
@bagder
bagder force-pushed the bagder/curl-version-date branch from 16e6352 to ac35a50 Compare May 11, 2017 11:25
@jay

jay commented May 12, 2017

Copy link
Copy Markdown
Member

It occurred to me after my last update here that I could get an [unrelased] date string in there simply by changing DEV in the header so I might do that...

ok

@bagder bagder closed this in 180c75e May 14, 2017
@bagder
bagder deleted the bagder/curl-version-date branch May 14, 2017 15:11
@lock lock Bot locked as resolved and limited conversation to collaborators May 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Development

Successfully merging this pull request may close these issues.

4 participants