[cig-commits] commit: update grdsub.sh to test the presence of .grd files.

Mercurial hg at geodynamics.org
Mon Apr 8 21:36:11 PDT 2013


changeset:   197:12d6817dc246
user:        Sylvain Barbot <sbarbot at ntu.edu.sg>
date:        Tue Apr 09 12:30:13 2013 +0800
files:       util/grdsub.sh
description:
update grdsub.sh to test the presence of .grd files.


diff -r dc9bd5c364be -r 12d6817dc246 util/grdsub.sh
--- a/util/grdsub.sh	Tue Apr 09 12:29:15 2013 +0800
+++ b/util/grdsub.sh	Tue Apr 09 12:30:13 2013 +0800
@@ -28,7 +28,7 @@ GRDFILEC2=$ITEMC-north.grd
 GRDFILEC2=$ITEMC-north.grd
 GRDFILEC3=$ITEMC-up.grd
 
-if [ -e $ITEMA ]; then
+if [ -e $(dirname $ITEMA)/$(basename $ITEMA .grd).grd ]; then
 	if [ "$ITEMB" == "0" ]; then
 		echo ${self}: copying to $(dirname $ITEMC), file $(basename $ITEMC)
 		cp $ITEMA $ITEMC



More information about the CIG-COMMITS mailing list