[Dart-dev] DART/branches Revision: 11606

dart at ucar.edu dart at ucar.edu
Fri May 5 09:34:59 MDT 2017


nancy at ucar.edu
2017-05-05 09:34:58 -0600 (Fri, 05 May 2017)
257
remove -fr is a dangerous combination and none of the uses
here require removing anything but the files given as arguments
so i'm removing the 'r'.

run the workshop_setup twice to make sure we can first create
new files and then overwrite existing files.




Modified: DART/branches/model_mod_changes/models/buildall.csh
===================================================================
--- DART/branches/model_mod_changes/models/buildall.csh	2017-05-04 22:16:16 UTC (rev 11605)
+++ DART/branches/model_mod_changes/models/buildall.csh	2017-05-05 15:34:58 UTC (rev 11606)
@@ -40,7 +40,7 @@
 #----------------------------------------------------------------------
 
 if ( ! $?REMOVE) then
-   setenv REMOVE 'rm -rf'
+   setenv REMOVE 'rm -f'
 endif
 
 if ( ! $?host) then
@@ -149,6 +149,8 @@
     if ( -f workshop_setup.csh ) then
       echo "Trying to run workshop_setup.csh for model $MODEL as a test"
       ./workshop_setup.csh || set FAILURE = 1
+      echo "Rerunning workshop_setup.csh to test overwriting files for model $MODEL"
+      ./workshop_setup.csh || set FAILURE = 1
     else
       echo "Trying to run pmo for model $MODEL as a test"
       echo "Will generate NetCDF files from any .cdl files first."


More information about the Dart-dev mailing list