]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't change '-'s to '.'s in the string from git-describe.
authorJim Meyering <jim@meyering.net>
Mon, 3 Sep 2007 08:38:14 +0000 (10:38 +0200)
committerJim Meyering <jim@meyering.net>
Mon, 3 Sep 2007 08:38:22 +0000 (10:38 +0200)
* 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  <jim@meyering.net>

ChangeLog
build-aux/git-version-gen

index 087ed774c76847b01be002dfe80bf8811d46a46e..c64c68fd53d4caecce7fe2401ef8640d4b345a91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-09-03  Jim Meyering  <jim@meyering.net>
+
+       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  <jim@meyering.net>
 
        * README-hacking: Require rsync, rather than wget.
index 0fe5f3688508f5ba00eb43b6dbf066bfb43d7b6b..a3e95aca6ccddae2d5bc77c4be035147e0497293 100755 (executable)
@@ -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