build-sys: use sed to substitute

Travis CI:
tools/git-version-gen: 116: tools/git-version-gen: Bad substitution

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2016-11-29 14:25:12 +01:00
parent 85004b142a
commit e1a0fd98cd
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ elif test "`git log -1 --pretty=format:x . 2>&1`" = x \
then
# Remove the "g" in git describe's output string, to save a byte.
v=${v/-g/-}
v=`echo "$v" | sed 's/-g/-/'`;
case $v in
*-rc*)