aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorwattazoum <wattazoum@svn>2009-12-05 08:55:35 +0000
committerwattazoum <wattazoum@svn>2009-12-05 08:55:35 +0000
commit9c9fe244939dcf83d151f969ba7c6c1626edff47 (patch)
tree80069cc11cc950af79af30b420913671c97f67ee /tools
parent4e0aefb77006e8218af8d9aeab82338813b06267 (diff)
[packaging] the svnrevision guessing would return the full xbmc svn tree revision and not the branch revision.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25306 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rwxr-xr-xtools/Linux/packaging/ppa-builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/Linux/packaging/ppa-builder.sh b/tools/Linux/packaging/ppa-builder.sh
index 9ba8bf6f74..37f409fc27 100755
--- a/tools/Linux/packaging/ppa-builder.sh
+++ b/tools/Linux/packaging/ppa-builder.sh
@@ -205,7 +205,7 @@ preparevars()
# If the version is not yet set it
if [[ -z $REVISION ]]; then
svn update $SVNSRC
- HEAD_REVISION=$(expr $(svn info $SVNSRC --xml 2>&1 | grep -m 1 -e "revision=\"[0-9]*\">") : 'revision="\([0-9]\+\)">')
+ HEAD_REVISION=$(eval LANG=POSIX svn info $SVNSRC | grep -E "Last Changed Rev: [0-9]+" | grep -o -E "[0-9]+")
REVISION=$HEAD_REVISION
fi
if [[ -z $VERSION ]]; then