aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh11
-rwxr-xr-xtools/darwin/packaging/xbmc-ios/mkdeb-xbmc-ios.sh12
2 files changed, 23 insertions, 0 deletions
diff --git a/tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh b/tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh
index d011bce0b5..add8ce1623 100755
--- a/tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh
+++ b/tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh
@@ -3,19 +3,30 @@
# Allows us to run mkdeb-xbmc-atv2.sh from anywhere in the three, rather than the tools/darwin/packaging/xbmc-atv2 folder only
SWITCH=`echo $1 | tr [A-Z] [a-z]`
DIRNAME=`dirname $0`
+DSYM_TARGET_DIR=/Users/Shared/xbmc-depends/dSyms
+DSYM_FILENAME=XBMC.frappliance.dSYM
if [ ${SWITCH:-""} = "debug" ]; then
echo "Packaging Debug target for ATV2"
XBMC="$DIRNAME/../../../../build/Debug-iphoneos/XBMC.frappliance"
+ DSYM="$DIRNAME/../../../../build/Debug-iphoneos/$DSYM_FILENAME"
elif [ ${SWITCH:-""} = "release" ]; then
echo "Packaging Release target for ATV2"
XBMC="$DIRNAME/../../../../build/Release-iphoneos/XBMC.frappliance"
+ DSYM="$DIRNAME/../../../../build/Release-iphoneos/$DSYM_FILENAME"
echo $XBMC
else
echo "You need to specify the build target"
exit 1
fi
+#copy bzip2 of dsym to xbmc-depends install dir
+if [ -d $DSYM ]; then
+ if [ -d $DSYM_TARGET_DIR ]; then
+ tar -C $DSYM/.. -c $DSYM_FILENAME/ | bzip2 > $DSYM_TARGET_DIR/`../../../buildbot/gitrev-posix`-${DSYM_FILENAME}.tar.bz2
+ fi
+fi
+
if [ ! -d $XBMC ]; then
echo "XBMC.frappliance not found! are you sure you built $1 target?"
exit 1
diff --git a/tools/darwin/packaging/xbmc-ios/mkdeb-xbmc-ios.sh b/tools/darwin/packaging/xbmc-ios/mkdeb-xbmc-ios.sh
index acc13149a2..5ff616c23e 100755
--- a/tools/darwin/packaging/xbmc-ios/mkdeb-xbmc-ios.sh
+++ b/tools/darwin/packaging/xbmc-ios/mkdeb-xbmc-ios.sh
@@ -4,18 +4,30 @@
# Allows us to run mkdeb-xbmc-ios.sh from anywhere in the three, rather than the tools/darwin/packaging/xbmc-ios folder only
SWITCH=`echo $1 | tr [A-Z] [a-z]`
DIRNAME=`dirname $0`
+DSYM_TARGET_DIR=/Users/Shared/xbmc-depends/dSyms
+DSYM_FILENAME=XBMC.app.dSYM
if [ ${SWITCH:-""} = "debug" ]; then
echo "Packaging Debug target for iOS"
XBMC="$DIRNAME/../../../../build/Debug-iphoneos/XBMC.app"
+ DSYM="$DIRNAME/../../../../build/Debug-iphoneos/$DSYM_FILENAME"
elif [ ${SWITCH:-""} = "release" ]; then
echo "Packaging Release target for iOS"
XBMC="$DIRNAME/../../../../build/Release-iphoneos/XBMC.app"
+ DSYM="$DIRNAME/../../../../build/Release-iphoneos/$DSYM_FILENAME"
else
echo "You need to specify the build target"
exit 1
fi
+#copy bzip2 of dsym to xbmc-depends install dir
+if [ -d $DSYM ]; then
+ if [ -d $DSYM_TARGET_DIR ]; then
+ tar -C $DSYM/.. -c $DSYM_FILENAME/ | bzip2 > $DSYM_TARGET_DIR/`../../../buildbot/gitrev-posix`-${DSYM_FILENAME}.tar.bz2
+ fi
+fi
+
+
if [ ! -d $XBMC ]; then
echo "XBMC.app not found! are you sure you built $1 target?"
exit 1