From 58efe4ec0410808eb00c464e681feeb3d02e0120 Mon Sep 17 00:00:00 2001 From: somebody_master Date: Sun, 12 Feb 2023 14:16:10 +0100 Subject: [PATCH] =?UTF-8?q?No=20permitir=20ninguna=20opci=C3=B3n=20m=C3=A1?= =?UTF-8?q?s=20tras=20construir=20y=20crear=20bd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: somebody_master --- build/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/build.sh b/build/build.sh index ec3476e..ca670b5 100755 --- a/build/build.sh +++ b/build/build.sh @@ -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" ;; ?)