Pick the SVN revision from the "svn info" if possible.

Get the SVN revision from the correct path when building out of source directory.


git-svn-id: http://voip.null.ro/svn/yate@5459 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-04-12 14:17:59 +00:00
parent d23655dace
commit e2a85771b5
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ fi
PACKAGE_RELEASE="1"
PACKAGE_STATUS="alpha"
PACKAGE_REVISION=`cat packing/revision.txt 2>/dev/null`
PACKAGE_REVISION=`svn info 2>/dev/null | sed -n 's,^Revision: *,,p'`
test -z "$PACKAGE_REVISION" && PACKAGE_REVISION=`cat "$srcdir/packing/revision.txt" 2>/dev/null`
PACKAGE_VERSION_MAJOR="${PACKAGE_VERSION%%.*}"
PACKAGE_VERSION_MINOR="${PACKAGE_VERSION#*.}"