If not SVN nor GIT can be used to resolve version, use debian changelog.

This commit is contained in:
Andreas Öman 2009-05-29 21:45:15 +00:00
parent cff78cfefa
commit 9b4d246e18

View file

@ -12,6 +12,11 @@ if ! test $revision; then
test $revision && revision=git-$revision
fi
# check for debian changelog
if ! test $revision; then
revision=`cd "$1" && cat debian/changelog |head -1|cut -f2 -d' '|sed s/\(//|sed s/\)//`
fi
# no version number found
test $revision || revision=UNKNOWN