This commit is contained in:
parent
5209f4159c
commit
4a30d4d560
@ -206,7 +206,7 @@ function buildspawn() {
|
|||||||
else
|
else
|
||||||
echo "Using local native buildchain"
|
echo "Using local native buildchain"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
build $FLAGS $CMAKE_DIR
|
build "$CMAKE_DIR"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -216,25 +216,30 @@ function buildspawn() {
|
|||||||
# ----------------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
while getopts "rm" opt; do
|
# Process arguments manually to support long options
|
||||||
case $opt in
|
while [[ $# -gt 0 ]]; do
|
||||||
r)
|
case $1 in
|
||||||
|
-r|--release)
|
||||||
RELEASE=1
|
RELEASE=1
|
||||||
|
shift
|
||||||
;;
|
;;
|
||||||
m)
|
-m|--multi)
|
||||||
MULTIBUILD=1
|
MULTIBUILD=1
|
||||||
|
shift
|
||||||
;;
|
;;
|
||||||
*)
|
-*)
|
||||||
|
echo "Unknown option: $1"
|
||||||
help
|
help
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
# This is not an option, so break from the loop
|
||||||
|
break
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Shift the processed options out of the argument list
|
# check we have at least one argument remaining
|
||||||
shift $((OPTIND-1))
|
|
||||||
|
|
||||||
# check we have at least one argument
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
help
|
help
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user