[GRASS-SVN] r31869 - grass/trunk/scripts/g.mlist
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jun 28 05:37:22 EDT 2008
Author: hcho
Date: 2008-06-28 05:37:22 -0400 (Sat, 28 Jun 2008)
New Revision: 31869
Modified:
grass/trunk/scripts/g.mlist/description.html
grass/trunk/scripts/g.mlist/g.mlist
Log:
sep= changed to separator= while keeping backward compatibility
Modified: grass/trunk/scripts/g.mlist/description.html
===================================================================
--- grass/trunk/scripts/g.mlist/description.html 2008-06-28 08:23:07 UTC (rev 31868)
+++ grass/trunk/scripts/g.mlist/description.html 2008-06-28 09:37:22 UTC (rev 31869)
@@ -44,7 +44,7 @@
<P>
Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):<BR>
-<TT>g.mlist -r type=vect sep=, pattern='^tmp[0-9]$'</TT>
+<TT>g.mlist -r type=vect separator=, pattern='^tmp[0-9]$'</TT>
<P>
This may be useful for other programs' parameter input
(e.g. <EM><A HREF="r.series.html">r.series</A></EM>).
Modified: grass/trunk/scripts/g.mlist/g.mlist
===================================================================
--- grass/trunk/scripts/g.mlist/g.mlist 2008-06-28 08:23:07 UTC (rev 31868)
+++ grass/trunk/scripts/g.mlist/g.mlist 2008-06-28 09:37:22 UTC (rev 31869)
@@ -42,7 +42,7 @@
#% required : no
#%end
#%option
-#% key: sep
+#% key: separator
#% type: string
#% description: Output separator (default: newline)
#% required : no
@@ -94,7 +94,7 @@
type="$GIS_OPT_TYPE"
mapset="$GIS_OPT_MAPSET"
-sep="$GIS_OPT_SEP"
+separator="$GIS_OPT_SEPARATOR"
search="$GIS_OPT_PATTERN"
# list all datatypes
@@ -120,8 +120,8 @@
do
do_list
done | sort | (
- if [ "$sep" != "" ] ; then
- tr '\n' "$sep" | sed 's/.$/\
+ if [ "$separator" != "" ] ; then
+ tr '\n' "$separator" | sed 's/.$/\
/'
else
cat
More information about the grass-commit
mailing list