X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=FIO-VERSION-GEN;h=eac0e00adb0f291cead8d1e3cbccdbf513ff7552;hb=104ee4dea7246d51d053076c55b917548dd0e7e2;hp=85e4cda0d0bcb3c024c1dcc8224bcad7cb4c08d4;hpb=ffa93ca9d8d37ef795904773a22bf4ea77f58373;p=fio.git diff --git a/FIO-VERSION-GEN b/FIO-VERSION-GEN index 85e4cda0..eac0e00a 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.15 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]*) + fio-[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 @@ -38,5 +38,3 @@ test "$VN" = "$VC" || { echo >&2 "FIO_VERSION = $VN" echo "FIO_VERSION = $VN" >$GVF } - -