aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2016-11-29 14:25:12 +0100
committerKarel Zak <kzak@redhat.com>2016-11-29 14:25:23 +0100
commite1a0fd98cd17088c2cce25f9105fa7ba8342a844 (patch)
treeebf3d1cc477f5fc3d0a0dde26fe5a2226b122de7
parent85004b142a3a358cfa9630e0d5cafc07af3e4da1 (diff)
downloadutil-linux-e1a0fd98cd17088c2cce25f9105fa7ba8342a844.tar.gz
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>
-rwxr-xr-xtools/git-version-gen2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git-version-gen b/tools/git-version-gen
index e7249f9a2f..b287cb7940 100755
--- a/tools/git-version-gen
+++ b/tools/git-version-gen
@@ -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*)