[GRASS-SVN] r48814 - grass/trunk/general/g.mlist
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 15 06:02:52 EDT 2011
Author: martinl
Date: 2011-10-15 03:02:52 -0700 (Sat, 15 Oct 2011)
New Revision: 48814
Modified:
grass/trunk/general/g.mlist/main.c
Log:
g.mlist: add extra message when listing maps
Modified: grass/trunk/general/g.mlist/main.c
===================================================================
--- grass/trunk/general/g.mlist/main.c 2011-10-15 08:42:59 UTC (rev 48813)
+++ grass/trunk/general/g.mlist/main.c 2011-10-15 10:02:52 UTC (rev 48814)
@@ -248,12 +248,19 @@
if (!list)
return;
+ if (count > 0) {
+ if (any)
+ fprintf(stdout, "\n");
+ G_message(_("%s available in mapset <%s>:"),
+ elem->text, mapset);
+ }
+
for (i = 0; i < count; i++) {
char *name = list[i];
- if (any)
+ if (any && i != 0)
fprintf(stdout, "%s", separator);
-
+
if (add_type)
fprintf(stdout, "%s/", alias);
@@ -267,6 +274,8 @@
any++;
}
+ fflush(stdout);
+
G_free(list);
}
More information about the grass-commit
mailing list