From 108cfb803174abf17eb101e9999b9d1a642ce1ba Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 24 Feb 2010 10:25:56 -0700 Subject: [PATCH] bootstrap, git-version-gen: use timestamp Timestamps are useful, particularly for files copied into other packages, to see how long since a file has forked. * build-aux/git-version-gen (scriptversion): Force UTC. * build-aux/bootstrap (scriptversion): New variable. Signed-off-by: Eric Blake --- ChangeLog | 4 ++++ build-aux/bootstrap | 10 ++++++++++ build-aux/git-version-gen | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8aef62a..0b5ca46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-02-24 Eric Blake + bootstrap, git-version-gen: use timestamp + * build-aux/git-version-gen (scriptversion): Force UTC. + * build-aux/bootstrap (scriptversion): New variable. + bootstrap: allow older git * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is older than 1.6.4. Requested by the libvirt project. diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 875e751..365a3d9 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -1,4 +1,6 @@ #! /bin/sh +# Print a version string. +scriptversion=2010-02-24.17; # UTC # Bootstrap this package from checked-out sources. @@ -841,3 +843,11 @@ fi bootstrap_epilogue echo "$0: done. Now you can run './configure'." + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 5f2f1cc..16da2a8 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -1,6 +1,6 @@ #!/bin/sh # Print a version string. -scriptversion=2010-01-27.16 +scriptversion=2010-02-24.17; # UTC # Copyright (C) 2007-2010 Free Software Foundation, Inc. # @@ -146,5 +146,6 @@ echo "$v" | tr -d '\012' # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-end: "$" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" # End: -- 1.6.6.1