Author: Lars Hjemli <hjemli@gmail.com>
gen-version.sh: don't sed the output from git describe 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 | 2 +-
diff --git a/gen-version.sh b/gen-version.sh index 739c83e9956a5b5ef1d821503a349055fc2a5193..3a080157cf4e871d8e4f63d01855d8eeaf36f943 100755 --- a/gen-version.sh +++ b/gen-version.sh @@ -6,7 +6,7 @@ # 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"