]> diplodocus.org Git - nmh/commit
config/version.sh: Rewrite. Use uname(1), git-describe(1), and UTC.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 9 May 2017 22:10:06 +0000 (23:10 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 9 May 2017 22:10:06 +0000 (23:10 +0100)
commit571d5e7543fd73aeb77af653a8d1b20d78c84b48
treea011b572bd6929d29cdede2dfd84a68fe0faef46
parentd8f618fee89be7c25e9cc232a358d2d2b1ed53ac
config/version.sh: Rewrite.  Use uname(1), git-describe(1), and UTC.

Not sure why it searched through PATH manually for uname(1) and
hostname(1).  uname and its -n option are POSIX so just use those.  It
was the preference over hostname anyway.

Use git-describe(1), not just git-branch(1), as it gives more detail,
including --dirty to show the built source differs from the commit.

Specify the format for the build date, and its timezone; +0000.
config/version.sh