diff options
author | Karel Zak | 2016-11-29 14:25:12 +0100 |
---|---|---|
committer | Karel Zak | 2016-11-29 14:25:23 +0100 |
commit | e1a0fd98cd17088c2cce25f9105fa7ba8342a844 (patch) | |
tree | ebf3d1cc477f5fc3d0a0dde26fe5a2226b122de7 /tools | |
parent | build-sys: fix "remove the g in git describe" (diff) | |
download | kernel-qcow2-util-linux-e1a0fd98cd17088c2cce25f9105fa7ba8342a844.tar.gz kernel-qcow2-util-linux-e1a0fd98cd17088c2cce25f9105fa7ba8342a844.tar.xz kernel-qcow2-util-linux-e1a0fd98cd17088c2cce25f9105fa7ba8342a844.zip |
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>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/git-version-gen | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git-version-gen b/tools/git-version-gen index e7249f9a2..b287cb794 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*) |