21 lines
273 B
Bash
Executable File
21 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
|
|
BUILD_TYPE="debug"
|
|
ARGS=""
|
|
|
|
while [[ $# > 0 ]];do
|
|
case $1 in
|
|
--release)
|
|
BUILD_TYPE="release"
|
|
shift
|
|
;;
|
|
*|-*|--*)
|
|
rest=("$@")
|
|
ARGS+=" ${rest[0]}"
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
|
|
bear -- make BUILD_TYPE=$BUILD_TYPE $ARGS
|