Commit 33b53367 authored by Sven Neumann's avatar Sven Neumann Committed by Øyvind "pippin" Kolås

tools: do not use 'git grep' to locate the source files

git grep will not work in a release tarball, use standard grep
instead and do the grep in the TOP_SRCDIR.
parent 1c7202f8
......@@ -5,6 +5,7 @@ EXTRA_DIST = \
gobj2dot.rb
AM_CPPFLAGS = \
-DTOP_SRCDIR=\"$(top_srcdir)\" \
-I$(top_srcdir) \
-I$(top_builddir)/gegl \
-I$(top_srcdir)/gegl \
......
......@@ -428,7 +428,7 @@ main (gint argc, gchar **argv)
{
gchar *commandline = g_strdup_printf (
"sh -c \"(cd ..;git grep '\\\"%s\\\"' ) | grep operations | grep '\\\"name\\\"' | cut -f 1 -d ':'\"",
"sh -c \"(cd " TOP_SRCDIR ";grep -r '\\\"%s\\\"' operations) | grep operations | grep '\\\"name\\\"' | cut -f 1 -d ':'\"",
name);
gchar *output = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment