[Dart-dev] DART/branches Revision: 11254

dart at ucar.edu dart at ucar.edu
Wed Mar 8 17:00:33 MST 2017


hendric at ucar.edu
2017-03-08 17:00:33 -0700 (Wed, 08 Mar 2017)
165
need to check that when changing diagnostic path that we
look for the first character to be diagnostics then replace
with : 

  assimilation_code/programs/obs_diag




Modified: DART/branches/rma_rearrange/change_path.csh
===================================================================
--- DART/branches/rma_rearrange/change_path.csh	2017-03-08 23:56:32 UTC (rev 11253)
+++ DART/branches/rma_rearrange/change_path.csh	2017-03-09 00:00:33 UTC (rev 11254)
@@ -21,7 +21,6 @@
    echo " PATH_FILE : " $PATH_FILE
    # grab just the filename and not the path
    foreach FILE_LINE( `cat $PATH_FILE | rev | cut -d'/' -f1 | rev | sort`)
-     # echo "  init  FILE_LINE --- $FILE_LINE"
      # if it is not a unique file skip it
      cp $PATH_FILE $PATH_FILE.tmp 
      if (`grep "^$FILE_LINE" "$NON_UNIQUE_FILE"` == '') then
@@ -93,7 +92,7 @@
         echo "    FILE LINE" $FILE_LINE
         echo "    FIND DIAG `echo '$FILE_LINE' | grep '^diagnostics'`"
         echo "    DIAGNOSTICS  --- assimilation_code/programs/obs_diag"
-        sed "s#diagnostics#assimilation_code/programs/obs_diag#" $PATH_FILE.tmp >! $PATH_FILE
+        sed "s#^diagnostics#assimilation_code/programs/obs_diag#" $PATH_FILE.tmp >! $PATH_FILE
      endif
 
    end
@@ -210,7 +209,7 @@
 foreach MKMF_FILE(`find . -name "mkmf_*" | sed "s/\.\///g"`)
    echo " MKMF_FILE : " $MKMF_FILE
    cp $MKMF_FILE $MKMF_FILE.tmp
-   sed "s#../../..#../../../..#" $MKMF_FILE.tmp >! $MKMF_FILE
+   sed "s#../../..#../../../..#g" $MKMF_FILE.tmp >! $MKMF_FILE
    rm $MKMF_FILE.tmp
 end
 


More information about the Dart-dev mailing list