Add gitversion Debian build option.

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

No files matched your search

+1 -1
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