No permitir ninguna opción más tras construir y crear bd
Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
parent
f20e858c2e
commit
58efe4ec04
@ -3,6 +3,7 @@
|
||||
function clean() {
|
||||
cd gdextension || return 1
|
||||
scons --clean
|
||||
cd ..
|
||||
}
|
||||
|
||||
function build() {
|
||||
@ -12,8 +13,8 @@ function build() {
|
||||
}
|
||||
|
||||
function build_db() {
|
||||
clean
|
||||
cd gdextension || return 1
|
||||
scons --clean
|
||||
bear -- scons
|
||||
|
||||
if [ ! -d ../build ]; then
|
||||
@ -32,8 +33,8 @@ function build_db() {
|
||||
|
||||
while getopts "bdch" flag; do
|
||||
case "$flag" in
|
||||
d) build_db ;;
|
||||
b) build ;;
|
||||
d) build_db && exit 0 ;;
|
||||
b) build && exit 0 ;;
|
||||
c) clean ;;
|
||||
h) echo "Use -b for build , -d for generating a compile_commands.json or -c for cleaning" ;;
|
||||
?)
|
||||
|
Loading…
x
Reference in New Issue
Block a user