2017-04-04 00:52:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
pushd $(dirname $0)
|
|
|
|
BASE=`pwd -P`
|
|
|
|
popd
|
|
|
|
|
2017-12-28 01:33:52 +00:00
|
|
|
sign=true
|
|
|
|
|
|
|
|
while getopts ":hn" option; do
|
|
|
|
case $option in
|
|
|
|
h) echo "usage: $0 [-h] [-n]"; exit ;;
|
|
|
|
n) sign=false ;;
|
|
|
|
?) echo "error: option -$OPTARG is not implemented"; exit ;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
SIGNARGS=""
|
|
|
|
|
|
|
|
if [ "$sign" = true ] ; then
|
|
|
|
SIGNARGS=('CODE_SIGN_IDENTITY=""' 'CODE_SIGNING_REQUIRED=NO')
|
|
|
|
fi
|
|
|
|
|
2017-04-04 00:52:17 +00:00
|
|
|
BUILDPRODUCTS="$BASE"/build/Build/Products/Release
|
|
|
|
|
2017-12-28 01:33:52 +00:00
|
|
|
xcodebuild -quiet -workspace "$BASE"/../Cog.xcodeproj/project.xcworkspace -scheme Cog -configuration Release -derivedDataPath "$BASE"/build ${SIGNARGS[*]}
|
2017-04-04 00:52:17 +00:00
|
|
|
|