X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=FIO-VERSION-GEN;h=7065a5790e2051bc05973d99e58803742147aef5;hp=85e4cda0d0bcb3c024c1dcc8224bcad7cb4c08d4;hb=565e784df05c2529479eed8a38701a33b01894bd;hpb=ffa93ca9d8d37ef795904773a22bf4ea77f58373 diff --git a/FIO-VERSION-GEN b/FIO-VERSION-GEN index 85e4cda0..7065a579 100755 --- a/FIO-VERSION-GEN +++ b/FIO-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=FIO-VERSION-FILE -DEF_VER=fio-2.0.13 +DEF_VER=fio-2.13 LF=' ' @@ -10,14 +10,14 @@ LF=' # then try git-describe, then default. if test -f version then - VN=$(cat version) || VN="$DEF_VER" + VN=`cat version` || VN="$DEF_VER" elif test -d .git -o -f .git && - VN=$(git describe --match "fio-[0-9]*" --abbrev=4 HEAD 2>/dev/null) && + VN=`git describe --match "fio-[0-9]*" --abbrev=4 HEAD 2>/dev/null` && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*) git update-index -q --refresh - test -z "$(git diff-index --name-only HEAD --)" || + test -z "`git diff-index --name-only HEAD --`" || VN="$VN-dirty" ;; esac then @@ -26,11 +26,11 @@ else VN="$DEF_VER" fi -VN=$(expr "$VN" : v*'\(.*\)') +VN=`expr "$VN" : v*'\(.*\)'` if test -r $GVF then - VC=$(sed -e 's/^FIO_VERSION = //' <$GVF) + VC=`sed -e 's/^FIO_VERSION = //' <$GVF` else VC=unset fi