[Dart-dev] DART/branches Revision: 11434

dart at ucar.edu dart at ucar.edu
Thu Apr 6 10:02:24 MDT 2017


nancy at ucar.edu
2017-04-06 10:02:24 -0600 (Thu, 06 Apr 2017)
574
make this not fail if there aren't any cdl files in this
current directory.   foreach i ( *.bob ) fails if there are
no files with the bob extension, but foreach i ( `ls *.bob` )
just echoes 'ls: not found' and continues on.  i'd like to use
the same build script for all directories (or as many as possible).

this change allows this script to work for any directory that
needs to build and run preprocess first, with or without cdl files.
we'll need a second version that just finds and runs mkmf scripts
for the 4 or 5 dirs which don't have preprocess as a prerequsite.




Modified: DART/branches/rma_trunk/models/lorenz_63/work/quickbuild.csh
===================================================================
--- DART/branches/rma_trunk/models/lorenz_63/work/quickbuild.csh	2017-04-04 22:22:34 UTC (rev 11433)
+++ DART/branches/rma_trunk/models/lorenz_63/work/quickbuild.csh	2017-04-06 16:02:24 UTC (rev 11434)
@@ -59,7 +59,7 @@
 
 @ n = 0
 
-foreach DATAFILE ( *.cdl )
+foreach DATAFILE ( `ls *.cdl` )
 
    set OUTNAME = `basename $DATAFILE .cdl`.nc
 


More information about the Dart-dev mailing list