[GRASS-SVN] r38341 - in grass/trunk: general/g.parser lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 10 04:59:39 EDT 2009
Author: martinl
Date: 2009-07-10 04:59:38 -0400 (Fri, 10 Jul 2009)
New Revision: 38341
Modified:
grass/trunk/general/g.parser/main.c
grass/trunk/lib/gis/parser.c
Log:
include 'guidependency' in scripts
Modified: grass/trunk/general/g.parser/main.c
===================================================================
--- grass/trunk/general/g.parser/main.c 2009-07-10 08:42:20 UTC (rev 38340)
+++ grass/trunk/general/g.parser/main.c 2009-07-10 08:59:38 UTC (rev 38341)
@@ -246,6 +246,11 @@
return;
}
+ if (strcasecmp(cmd, "guidependency") == 0) {
+ ctx->option->guidependency = translate(strdup(arg));
+ return;
+ }
+
if (strcasecmp(cmd, "end") == 0) {
ctx->state = S_TOPLEVEL;
return;
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2009-07-10 08:42:20 UTC (rev 38340)
+++ grass/trunk/lib/gis/parser.c 2009-07-10 08:59:38 UTC (rev 38341)
@@ -1856,6 +1856,8 @@
fprintf(fp, "#%% gisprompt: %s\n", opt->gisprompt);
if (opt->guisection)
fprintf(fp, "#%% guisection: %s\n", opt->guisection);
+ if (opt->guidependency)
+ fprintf(fp, "#%% guidependency: %s\n", opt->guidependency);
fprintf(fp, "#%%End\n");
}
}
More information about the grass-commit
mailing list