From: Jim Meyering Date: Mon, 3 Sep 2007 08:38:14 +0000 (+0200) Subject: Don't change '-'s to '.'s in the string from git-describe. X-Git-Tag: v6.9.89~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0bd493a2a1d6a0c80d5b29a0e135592544bef07;p=thirdparty%2Fcoreutils.git Don't change '-'s to '.'s in the string from git-describe. * build-aux/git-version-gen: Leave '-'s in the string from git-describe. Otherwise, s/-/./g would make it too hard to distinguish the base version number from the appended .DD suffixes. 2007-09-03 Jim Meyering --- diff --git a/ChangeLog b/ChangeLog index 087ed774c7..c64c68fd53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-09-03 Jim Meyering + + Don't change '-'s to '.'s in the string from git-describe. + * build-aux/git-version-gen: Leave '-'s in the string from git-describe. + Otherwise, s/-/./g would make it too hard to distinguish the base + version number from the appended .DD suffixes. + 2007-09-03 Jim Meyering * README-hacking: Require rsync, rather than wget. diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index 0fe5f36885..a3e95aca6c 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -38,8 +38,8 @@ elif test -d .git \ *) (exit 1) ;; esac then - # Remove the "g" in git-describe's output string; change each - to a '.' - v=`echo "$v" | sed 's/\(.*\)-g/\1-/;s/-/./g'`; + # Remove the "g" in git-describe's output string. + v=`echo "$v" | sed 's/\(.*\)-g/\1-/'`; else v=$default_version fi