From: Kevin Day Date: Wed, 7 Mar 2012 04:24:15 +0000 (-0600) Subject: Bugfix: do not report build operation as invalid if the project has already been... X-Git-Tag: 0.3.x~4 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=51ca82d23fedb061f253aab4ca5d3ab224c40892;p=fll Bugfix: do not report build operation as invalid if the project has already been built Print a warning instead of the invalid error message. --- diff --git a/build/scripts/generate.sh b/build/scripts/generate.sh index 04ca201..d646bf4 100644 --- a/build/scripts/generate.sh +++ b/build/scripts/generate.sh @@ -83,12 +83,16 @@ generate_main(){ generate_load_settings - if [[ $operation == "build" && ! -f ${path_build}.built ]] ; then - if [[ ! -f ${path_build}.prepared ]] ; then - generate_prepare_build - fi + if [[ $operation == "build" ]] ; then + if [[ -f ${path_build}.built ]] ; then + echo -e "${c_warning}WARNING: this project has already been built.$c_reset" + else + if [[ ! -f ${path_build}.prepared ]] ; then + generate_prepare_build + fi - generate_operation_build + generate_operation_build + fi elif [[ $operation == "clean" ]] ; then generate_operation_clean elif [[ $operation == "fail-multiple" ]] ; then