1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-21 12:41:44 +03:00
vimr/bin/build_vimr_dev.sh

25 lines
506 B
Bash
Raw Normal View History

2020-09-05 13:53:43 +03:00
#!/bin/bash
set -Eeuo pipefail
readonly clean=${clean:?"true or false: when true, xcodebuild clean will be performed"}
main() {
2020-11-16 00:11:01 +03:00
if [[ "${clean}" == true ]]; then
2020-09-05 13:53:43 +03:00
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 \
2020-09-06 15:03:11 +03:00
-scheme VimR \
-xcconfig ./VimR/Dev.xcconfig \
2020-09-05 13:53:43 +03:00
${cmd}
popd >/dev/null
}
main