[cig-commits] commit: fixes flt2vtk.sh with standard input.
Mercurial
hg at geodynamics.org
Wed Jul 11 15:28:39 PDT 2012
changeset: 137:772aac05f5ea
tag: tip
user: Sylvain Barbot <sbarbot at caltech.edu>
date: Wed Jul 11 15:28:32 2012 -0700
files: util/flt2vtk.sh util/grdmap.sh
description:
fixes flt2vtk.sh with standard input.
diff -r e9cef39363e0 -r 772aac05f5ea util/flt2vtk.sh
--- a/util/flt2vtk.sh Sat Jul 07 02:00:16 2012 -0700
+++ b/util/flt2vtk.sh Wed Jul 11 15:28:32 2012 -0700
@@ -5,7 +5,6 @@ trap 'echo $self: Some errors occurred.
trap 'echo $self: Some errors occurred. Exiting.; exit' ERR
flt2vtk(){
-
grep -v "#" $FLTFILE | awk '
BEGIN{
pi=atan2(1,0)*2;
@@ -97,7 +96,7 @@ fi
fi
if [ ! -t 0 ]; then
- FLTFILE=$1
+ FLTFILE=-
VTKFILE=/dev/stdout
flt2vtk
else
diff -r e9cef39363e0 -r 772aac05f5ea util/grdmap.sh
--- a/util/grdmap.sh Sat Jul 07 02:00:16 2012 -0700
+++ b/util/grdmap.sh Wed Jul 11 15:28:32 2012 -0700
@@ -200,7 +200,6 @@ while [ "$#" != "0" -o "$Eset" == "1" ];
while [ "$#" != "0" -o "$Eset" == "1" ];do
if [ "$1" != "" ]; then
- echo $1
WDIR=`dirname $1`
INDEX=`basename $1`
More information about the CIG-COMMITS
mailing list