[cig-commits] commit: fix the grdmap.sh option for subprog.
Mercurial
hg at geodynamics.org
Sun Dec 16 13:20:29 PST 2012
changeset: 159:ea093f199cc5
tag: tip
user: Sylvain Barbot <sbarbot at caltech.edu>
date: Sun Dec 16 13:20:25 2012 -0800
files: util/grdmap.sh
description:
fix the grdmap.sh option for subprog.
diff -r eaae90140885 -r ea093f199cc5 util/grdmap.sh
--- a/util/grdmap.sh Tue Nov 27 02:49:53 2012 -0800
+++ b/util/grdmap.sh Sun Dec 16 13:20:25 2012 -0800
@@ -65,13 +65,18 @@ my_gmt(){
# running all required subprograms
for subprog in $EXTRA; do
+ if [ "" == "$U3" ]; then
+ OPTIONP="-p $U3"
+ else
+ OPTIONP=""
+ fi
if [ -e "$selfdir/$subprog" ]; then
#echo $self: running $subprog $PSFILE $bds $VECTOR $U3 $HEIGHT
- eval "$subprog $gset -b $bds -v $VECTOR -p $U3 -H $HEIGHT $PSFILE"
+ eval "$subprog $gset -b $bds -v $VECTOR $OPTIONP -H $HEIGHT $PSFILE"
else
if [ -e "$subprog" ]; then
#echo $self: running $subprog $PSFILE $bds $VECTOR $U3 $HEIGHT
- eval "$subprog $gset -b $bds -v $VECTOR -p $U3 -H $HEIGHT $PSFILE"
+ eval "$subprog $gset -b $bds -v $VECTOR $OPTIONP -H $HEIGHT $PSFILE"
fi
fi
done
More information about the CIG-COMMITS
mailing list