3 DEFAULT_VERSION=2.13.54
4 LVF=LUSTRE-VERSION-FILE
9 if test -d ${GIT_DIR:-.git} -o -f .git &&
10 VN=$(git describe --match "[0-9]*" --abbrev=7 HEAD 2>/dev/null) &&
14 git update-index -q --refresh
15 test -z "$(git diff-index --name-only HEAD --)" ||
19 VN=$(echo "$VN" | sed -e 's/-/_/g');
22 VN=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
29 VC=$(sed -e 's/^LUSTRE_VERSION = //' <$LVF)
33 test "$VN" = "$VC" || {
34 echo "LUSTRE_VERSION = $VN" >$LVF