summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorØyvind Kolås <pippin@gimp.org>2014-05-25 02:52:25 +0200
committerØyvind Kolås <pippin@gimp.org>2014-05-25 02:58:50 +0200
commite1e00b7addc95ac3a565c15da2392ed70738b492 (patch)
tree02e84d01d4cf3577ae2f0fb694a43ee1e5217671 /tools
parent20081bd264362b687b719c4b77a165a43f30af8f (diff)
docs: add javascript+json static/dynamic op browser
Diffstat (limited to 'tools')
-rw-r--r--tools/operation_reference.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/operation_reference.c b/tools/operation_reference.c
index 42193531..787ae84b 100644
--- a/tools/operation_reference.c
+++ b/tools/operation_reference.c
@@ -386,6 +386,25 @@ main (gint argc, gchar **argv)
g_free (image);
}
+ {
+ gchar *commandline = g_strdup_printf (
+ "sh -c \"(cd ..;git grep '\\\"%s\\\"' ) | grep operations | grep '\\\"name\\\"' | cut -f 1 -d ':'\"",
+ name);
+ gchar *output = NULL;
+
+ if (g_spawn_command_line_sync (commandline, &output, NULL, NULL, NULL))
+ {
+ if (strlen(output))
+ {
+ output[strlen(output)-1] = 0;
+ g_print (
+ ",'source':'https://git.gnome.org/browse/gegl/tree/%s'\n", output);
+ }
+ g_free (output);
+ }
+
+ g_free (commandline);
+ }
if (categoris)
{