Propagate srcdir into the test correctly. (#359845)

2006-10-05  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/Makefile.am, gtk/aliasfilescheck.sh:  Propagate srcdir into the
        test correctly. (#359845)
This commit is contained in:
Behdad Esfahbod 2006-10-05 15:51:45 +00:00 committed by Behdad Esfahbod
parent a3b67535df
commit e54a2682fc
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2006-10-05 Behdad Esfahbod <behdad@gnome.org>
* gtk/Makefile.am, gtk/aliasfilescheck.sh: Propagate srcdir into the
test correctly. (#359845)
2006-10-05 Michael Natterer <mitch@imendio.com>
* gtk/gtkrc.[ch]: added new scanner token "unbind" which gets

View File

@ -93,7 +93,7 @@ check-aliases:
.PHONY: check-aliases
TESTS_ENVIRONMENT = gtk_all_c_sources="$(gtk_all_c_sources)"
TESTS_ENVIRONMENT = srcdir="$(srcdir)" gtk_all_c_sources="$(gtk_all_c_sources)"
TESTS = aliasfilescheck.sh
if OS_LINUX
TESTS += abicheck.sh pltcheck.sh

View File

@ -5,8 +5,7 @@ if test "x$gtk_all_c_sources" = x; then
exit 1
fi
grep 'IN_FILE' gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files
grep '^ *# *define __' $gtk_all_c_sources | sed 's/.*define //;s/ *$//' | sort > actual-files
grep 'IN_FILE' ${srcdir-.}/gtk.symbols | sed 's/.*(//;s/).*//' | grep __ | sort -u > expected-files
{ cd ${srcdir-.}; grep '^ *# *define __' $gtk_all_c_sources; } | sed 's/.*define //;s/ *$//' | sort > actual-files
diff expected-files actual-files && rm -f expected-files actual-files