diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-03 17:46:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-03 17:46:42 +0100 |
commit | 8beb69b1480485bb81b16c0eb90f49d76cd8dd94 (patch) | |
tree | 7eb015ff390f89ba67d58dd6538ecdb109610e0e | |
parent | 0814422a7df34bf06f15a6f064472f3aed8c7ebe (diff) | |
download | coreutils-8beb69b1480485bb81b16c0eb90f49d76cd8dd94.tar.xz |
Change the first '-' to '.' in the snapshot version string,
e.g., 6.9-377-08144 -> 6.9.377-08144
* build-aux/git-version-gen: ... and add comments.
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | build-aux/git-version-gen | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,9 @@ 2007-11-03 Jim Meyering <meyering@redhat.com> + Change the first '-' to '.' in the snapshot version string, + e.g., 6.9-377-08144 -> 6.9.377-08144 + * build-aux/git-version-gen: ... and add comments. + seq: add another test for the %% bug. * tests/misc/seq (fmt-c): Test the other fixed case, too. diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen index c433c262d..4e8ffc6ea 100755 --- a/build-aux/git-version-gen +++ b/build-aux/git-version-gen @@ -42,8 +42,9 @@ elif test -d .git \ *) (exit 1) ;; esac then - # Remove the "g" in git-describe's output string. - v=`echo "$v" | sed 's/\(.*\)-g/\1-/'`; + # Change the first '-' to a '.', so version-comparing tools work properly. + # Remove the "g" in git-describe's output string, to save a byte. + v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1-/'`; else v=UNKNOWN fi |