According to Eric Blake on 2/24/2010 9:54 AM:
> Libvirt came up with the compelling reason - Fedora Core 11 only has
> 1.6.2.5, and RPEL 5 is back at git 1.5.5.  This should fix it, by
> borrowing ideas from m4's bootstrap script.

And adding timestamps aids in tracking whether projects are using the
latest bootstrap.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org
From 108cfb803174abf17eb101e9999b9d1a642ce1ba Mon Sep 17 00:00:00 2001
From: Eric Blake <ebl...@redhat.com>
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 <ebl...@redhat.com>
---
 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  <ebl...@redhat.com>

+       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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to