[GRASS-SVN] r39639 - grass/branches/develbranch_6/scripts/m.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 28 10:37:53 EDT 2009


Author: neteler
Date: 2009-10-28 10:37:52 -0400 (Wed, 28 Oct 2009)
New Revision: 39639

Modified:
   grass/branches/develbranch_6/scripts/m.proj/m.proj
Log:
fix delimitors in output (needs to be ported to GRASS7/py)

Modified: grass/branches/develbranch_6/scripts/m.proj/m.proj
===================================================================
--- grass/branches/develbranch_6/scripts/m.proj/m.proj	2009-10-28 14:35:34 UTC (rev 39638)
+++ grass/branches/develbranch_6/scripts/m.proj/m.proj	2009-10-28 14:37:52 UTC (rev 39639)
@@ -246,10 +246,10 @@
 #   cs2cs | sed -e 's/d/:/g' -e "s/'/:/g"  -e 's/"//g'
 
 if [ -z "$outfile" ] ; then
-   cat "$infile" | tr "$fs" ' ' | cs2cs $COPYINP $OUTFMT $IN_PROJ +to $OUT_PROJ
+   cat "$infile" | tr "$fs" ' ' | cs2cs $COPYINP $OUTFMT $IN_PROJ +to $OUT_PROJ | tr -s "\t" "$GIS_OPT_FS" | tr -s " " "$GIS_OPT_FS"
    EXITCODE=$?
 else
-   cat "$infile" | tr "$fs" ' ' | cs2cs $COPYINP $OUTFMT $IN_PROJ +to $OUT_PROJ \
+   cat "$infile" | tr "$fs" ' ' | cs2cs $COPYINP $OUTFMT $IN_PROJ +to $OUT_PROJ | tr -s "\t" "$GIS_OPT_FS" | tr -s " " "$GIS_OPT_FS" \
       > "$outfile"
    EXITCODE=$?
 



More information about the grass-commit mailing list