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() {
|
function clean() {
|
||||||
cd gdextension || return 1
|
cd gdextension || return 1
|
||||||
scons --clean
|
scons --clean
|
||||||
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
function build() {
|
function build() {
|
||||||
@ -12,8 +13,8 @@ function build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function build_db() {
|
function build_db() {
|
||||||
|
clean
|
||||||
cd gdextension || return 1
|
cd gdextension || return 1
|
||||||
scons --clean
|
|
||||||
bear -- scons
|
bear -- scons
|
||||||
|
|
||||||
if [ ! -d ../build ]; then
|
if [ ! -d ../build ]; then
|
||||||
@ -32,8 +33,8 @@ function build_db() {
|
|||||||
|
|
||||||
while getopts "bdch" flag; do
|
while getopts "bdch" flag; do
|
||||||
case "$flag" in
|
case "$flag" in
|
||||||
d) build_db ;;
|
d) build_db && exit 0 ;;
|
||||||
b) build ;;
|
b) build && exit 0 ;;
|
||||||
c) clean ;;
|
c) clean ;;
|
||||||
h) echo "Use -b for build , -d for generating a compile_commands.json or -c for cleaning" ;;
|
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