If not SVN nor GIT can be used to resolve version, use debian changelog.
This commit is contained in:
parent
cff78cfefa
commit
9b4d246e18
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue