mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-22 16:13:34 +08:00
git-version-gen: Sync from autoconf's version.
* build-aux/git-version-gen: Run git-status
This commit is contained in:
parent
ae559eabcd
commit
4c9b376271
@ -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.
|
||||
|
||||
|
@ -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
|
||||
'') ;;
|
||||
|
Loading…
Reference in New Issue
Block a user