summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-03 22:52:33 +0100
committerJim Meyering <meyering@redhat.com>2007-11-03 22:52:33 +0100
commit4c9b376271f737096722d79dd1bdb7bb4b5302f9 (patch)
tree54167d9d0837bd61936424f1628fb6a046ff955f
parentae559eabcda8db7e8daf759cda89683a1d5ad7ed (diff)
downloadcoreutils-4c9b376271f737096722d79dd1bdb7bb4b5302f9.tar.xz
git-version-gen: Sync from autoconf's version.
* build-aux/git-version-gen: Run git-status
-rw-r--r--ChangeLog3
-rwxr-xr-xbuild-aux/git-version-gen5
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e63a3e816..834cb9fe0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2007-11-03 Jim Meyering <meyering@redhat.com>
+ git-version-gen: Sync from autoconf's version.
+ * build-aux/git-version-gen: Run git-status
+
Sync copyright and scriptversion bits from gnulib.
* build-aux/git-version-gen: No semantic change.
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 3af7e0042..a7e096832 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -1,6 +1,6 @@
#!/bin/sh
# Print a version string.
-scriptversion=2007-11-03.18
+scriptversion=2007-11-03.22
# Copyright (C) 2007 Free Software Foundation
#
@@ -70,6 +70,9 @@ fi
v=`echo "$v" |sed 's/^v//'`
+# Don't declare a version "dirty" merely because a time stamp has changed.
+git-status > /dev/null 2>&1
+
dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty=
case "$dirty" in
'') ;;