projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix regression introduced by commit 334185e
[fio.git]
/
FIO-VERSION-GEN
diff --git
a/FIO-VERSION-GEN
b/FIO-VERSION-GEN
index bd73b9ee3c5be6cdd2c3695b6fad4f8da223263b..4cb3545ea89e88bc47ed0968ea43fdf2136c3d62 100755
(executable)
--- a/
FIO-VERSION-GEN
+++ b/
FIO-VERSION-GEN
@@
-1,7
+1,7
@@
#!/bin/sh
GVF=FIO-VERSION-FILE
#!/bin/sh
GVF=FIO-VERSION-FILE
-DEF_VER=
2.0.7
+DEF_VER=
fio-2.1.9
LF='
'
LF='
'
@@
-10,14
+10,14
@@
LF='
# then try git-describe, then default.
if test -f version
then
# 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 &&
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
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
VN="$VN-dirty" ;;
esac
then
@@
-26,11
+26,11
@@
else
VN="$DEF_VER"
fi
VN="$DEF_VER"
fi
-VN=
$(expr "$VN" : v*'\(.*\)')
+VN=
`expr "$VN" : v*'\(.*\)'`
if test -r $GVF
then
if test -r $GVF
then
- VC=
$(sed -e 's/^FIO_VERSION = //' <$GVF)
+ VC=
`sed -e 's/^FIO_VERSION = //' <$GVF`
else
VC=unset
fi
else
VC=unset
fi