Don't check pod install has been run if we're only cleaning

This commit is contained in:
David Baker 2015-04-07 11:07:48 +01:00
parent 90f5a2a813
commit 7b5aec0fe3

View file

@ -2,12 +2,6 @@
set -e
if [ ! -d "matrixConsole.xcworkspace" ]
then
echo "Please run pod install first"
exit 1
fi
builddir="build"
outdir="out"
@ -29,6 +23,11 @@ then
$basecmd clean
rm -r "$builddir" "$outdir" || true
else
if [ ! -d "matrixConsole.xcworkspace" ]
then
echo "Please run pod install first"
exit 1
fi
$basecmd -archivePath "out/matrixConsole.xcarchive" archive GCC_PREPROCESSOR_DEFINITIONS="\$(GCC_PREPROCESSOR_DEFINITIONS) $vars" "$@"
xcrun -sdk $sdk PackageApplication -v $outdir/matrixConsole.xcarchive/Products/Applications/matrixConsole.app -o `pwd`/out/matrixConsole.ipa
fi