1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-03 00:54:42 +03:00
vimr/bin/build_vimr_dev.sh
2020-09-06 11:28:00 +02:00

25 lines
493 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
readonly clean=${clean:?"true or false: when true, xcodebuild clean will be performed"}
main() {
if "${clean}" ; then
local -r cmd="clean build"
else
local -r cmd="build"
fi
pushd "$(dirname "${BASH_SOURCE[0]}")/.." > /dev/null
xcodebuild \
-workspace VimR.xcworkspace \
-derivedDataPath ./build \
-configuration Release \
-scheme VimR -xcconfig \
./VimR/Dev.xcconfig \
${cmd}
popd >/dev/null
}
main