]> granicus.if.org Git - cgit/commitdiff
gen-version.sh: don't sed the output from git describe
authorLars Hjemli <hjemli@gmail.com>
Mon, 1 Oct 2007 10:01:51 +0000 (12:01 +0200)
committerLars Hjemli <hjemli@gmail.com>
Mon, 1 Oct 2007 10:09:41 +0000 (12:09 +0200)
Replacing '-' with '.' makes the version name slightly confusing, so lets
stick with the unmodified output of git describe.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
gen-version.sh

index 739c83e9956a5b5ef1d821503a349055fc2a5193..3a080157cf4e871d8e4f63d01855d8eeaf36f943 100755 (executable)
@@ -6,7 +6,7 @@ V=$1
 # Use `git describe` to get current version if we're inside a git repo
 if test -d .git
 then
-       V=$(git describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/-/./g')
+       V=$(git describe --abbrev=4 HEAD 2>/dev/null)
 fi
 
 new="CGIT_VERSION = $V"