]> Kevux Git Server - fll/commitdiff
Bugfix: do not report build operation as invalid if the project has already been...
authorKevin Day <kevin@kevux.org>
Wed, 7 Mar 2012 04:24:15 +0000 (22:24 -0600)
committerKevin Day <kevin@kevux.org>
Wed, 7 Mar 2012 04:24:15 +0000 (22:24 -0600)
Print a warning instead of the invalid error message.

build/scripts/generate.sh

index 04ca201b00f3d1239141f15887d5ad53a97ec797..d646bf478368efc718a0fa9f679e3591f1c325eb 100644 (file)
@@ -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