X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=FIO-VERSION-GEN;h=f9a8ec646b61bf48b8c0984aae3d4914b1c910a2;hp=ee017f002d5c0557f3656c6d03726058744d4023;hb=4f668cdd0e6b89737dbd46a9e277e3742299a707;hpb=47ea504af7710960e4019254cb910f69a32cb242 diff --git a/FIO-VERSION-GEN b/FIO-VERSION-GEN index ee017f00..f9a8ec64 100755 --- a/FIO-VERSION-GEN +++ b/FIO-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=FIO-VERSION-FILE -DEF_VER=fio-2.0.8 +DEF_VER=fio-2.0.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]*) 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