Add gitversion Debian build option.

This commit is contained in:
Simon Kelley
2013-09-09 18:06:45 +01:00
parent 6acef73052
commit 02ed24d351
3 changed files with 12 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
# first. This favours, eg v2.63 over 2.63rc6.
if which git >/dev/null 2>&1 && [ -d $1/.git ]; then
cd $1; git describe
cd $1; git describe | sed 's/^v//'
elif grep '\$Format:%d\$' $1/VERSION >/dev/null 2>&1; then
# unsubstituted VERSION, but no git available.
echo UNKNOWN