aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh')
-rwxr-xr-xtools/darwin/packaging/xbmc-atv2/mkdeb-xbmc-atv2.sh11
1 files changed, 11 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