WORKSPACE=${WORKSPACE:-$( cd $(dirname $0)/../../.. ; pwd -P )} XBMC_PLATFORM_DIR=ios . $WORKSPACE/tools/buildsteps/defaultenv cd $WORKSPACE/build;make -j$BUILDTHREADS deb cd $WORKSPACE/build/tools/darwin/packaging/ios/ #rename for upload #e.x. kodi-20130314-8c2fb31-Frodo-ios.deb if [ "$DARWIN_ARM_CPU" == "arm64" ] then UPLOAD_FILENAME="kodi-$(getBuildRevDateStr)-ios64.deb" else UPLOAD_FILENAME="kodi-$(getBuildRevDateStr)-ios.deb" fi mv *.deb $WORKSPACE/tools/darwin/packaging/ios/$UPLOAD_FILENAME