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



commit 33b533672f22c81272bd7a810a0ab4282d08c96b
Author: Sven Neumann <sven gimp org>
Date:   Sat Nov 21 23:52:26 2015 +0100

    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.

 tools/Makefile.am           |    1 +
 tools/operation_reference.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 4d4f611..e666771 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -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 \
diff --git a/tools/operation_reference.c b/tools/operation_reference.c
index 88cedd2..68942c1 100644
--- a/tools/operation_reference.c
+++ b/tools/operation_reference.c
@@ -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;
         


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]