Merge "Remove GEN-DOC-VERSION from the Documentation folder" into stable-2.8

This commit is contained in:
Edwin Kempin
2013-10-17 07:25:55 +00:00
committed by Gerrit Code Review

View File

@@ -1,19 +0,0 @@
#!/bin/sh
V=$(git describe HEAD)
case "$V" in
'')
echo >&2 "fatal: no annotated tags, cannot determine version"
exit 1
;;
*-g*)
echo >&2 "fatal: snapshot $V, cannot determine version"
exit 1
;;
v*)
echo "$V" | perl -lne 'print $1 if /^v(\d+\.\d+(?:\.\d+)?)/'
;;
esac