projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init: pass in right pointer to def thread options free
[fio.git]
/
FIO-VERSION-GEN
diff --git
a/FIO-VERSION-GEN
b/FIO-VERSION-GEN
index 035ddaf18711cee99a25be1db9cf109b210c0dd3..d19dccacdbdfacb966c84c7e6d12aa9673da57d7 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=fio-2.
0.11
+DEF_VER=fio-2.
13
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) ;;
case "$VN" in
*$LF*) (exit 1) ;;
-
v
[0-9]*)
+
fio-
[0-9]*)
git update-index -q --refresh
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
@@
-38,5
+38,3
@@
test "$VN" = "$VC" || {
echo >&2 "FIO_VERSION = $VN"
echo "FIO_VERSION = $VN" >$GVF
}
echo >&2 "FIO_VERSION = $VN"
echo "FIO_VERSION = $VN" >$GVF
}
-
-