From 51ca82d23fedb061f253aab4ca5d3ab224c40892 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 6 Mar 2012 22:24:15 -0600 Subject: [PATCH] Bugfix: do not report build operation as invalid if the project has already been built Print a warning instead of the invalid error message. --- build/scripts/generate.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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 -- 1.8.3.1