toosl/git-version-gen: use a dot to separate the commit string from the regular version
This commit is contained in:
parent
1a1d443f91
commit
cf1a4a79b0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue