summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/git-version-gen3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/git-version-gen b/build-aux/git-version-gen
index 4a631116b..0fe5f3688 100755
--- a/build-aux/git-version-gen
+++ b/build-aux/git-version-gen
@@ -38,7 +38,8 @@ elif test -d .git \
*) (exit 1) ;;
esac
then
- v=`echo "$v" | sed 's/-/./g'`;
+ # Remove the "g" in git-describe's output string; change each - to a '.'
+ v=`echo "$v" | sed 's/\(.*\)-g/\1-/;s/-/./g'`;
else
v=$default_version
fi