aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/packaging/osx/mkdmg-osx.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin/packaging/osx/mkdmg-osx.sh.in')
-rwxr-xr-xtools/darwin/packaging/osx/mkdmg-osx.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/darwin/packaging/osx/mkdmg-osx.sh.in b/tools/darwin/packaging/osx/mkdmg-osx.sh.in
index 33c13dd45a..2a10ebc081 100755
--- a/tools/darwin/packaging/osx/mkdmg-osx.sh.in
+++ b/tools/darwin/packaging/osx/mkdmg-osx.sh.in
@@ -25,7 +25,12 @@ ARCHITECTURE=`file $APP/Contents/MacOS/@APP_NAME@ | awk '{print $NF}'`
PACKAGE=org.xbmc.@APP_NAME_LC@-osx
VERSION=@APP_VERSION_MAJOR@.@APP_VERSION_MINOR@
-REVISION=0~@APP_VERSION_TAG_LC@
+REVISION=0
+
+if [ "@APP_VERSION_TAG_LC@" != "" ]; then
+ REVISION=$REVISION~@APP_VERSION_TAG_LC@
+fi
+
ARCHIVE=${PACKAGE}_${VERSION}-${REVISION}_macosx-intel-${ARCHITECTURE}
echo Creating $PACKAGE package version $VERSION revision $REVISION