toosl/git-version-gen: use a dot to separate the commit string from the regular version

This commit is contained in:
Benjamin Dauvergne 2013-09-27 16:19:03 +02:00
parent 1a1d443f91
commit cf1a4a79b0
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ then
# 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-g/'`;
v=`echo "$v" | sed 's/-/./;s/\(.*\)-g/\1.g/'`;
v_from_git=1
elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
v=UNKNOWN