[beast] po/Makefile.am: fixed ignore patterns for 'unlisted' rule
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast] po/Makefile.am: fixed ignore patterns for 'unlisted' rule
- Date: Tue, 7 Sep 2010 02:01:14 +0000 (UTC)
commit 8e65545141b5fd1b40bff7eeaa724b30a4f83fba
Author: Tim Janik <timj gtk org>
Date: Tue Sep 7 03:10:24 2010 +0200
po/Makefile.am: fixed ignore patterns for 'unlisted' rule
po/Makefile.am | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/po/Makefile.am b/po/Makefile.am
index 13e2ee3..7e59441 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -169,10 +169,8 @@ unlisted:
@rm -f unlisted
@ # list possible POT sources...
@(cd $(top_srcdir) && find . $(FIND_NOHIDDEN) -type f -print) | sed 's,^\./,,' \
- | if test -e POTSCAN ; then grep -vFf POTSCAN ; else cat ; fi \
- | if test -e POTSKIP ; then grep -vFf POTSKIP ; else cat ; fi \
- | if test -e POTIGNORE ; then grep -vEf POTIGNORE ; else cat ; fi \
- > "xgen-$(@F)" ; :
+ | grep -vxF -f $(srcdir)/POTSCAN -f $(srcdir)/POTSKIP \
+ | grep -vEf $(srcdir)/POTIGNORE -e '^_(inst|build)/' -e $(DISTDIRPAT) > "xgen-$(@F)" ; :
@ # scanning file types...
@$(foreach TYPE, $(POSRC_TYPES), \
$(call test_unlisted, $(TYPE), "xgen-$(@F)", "unlisted"))
@@ -182,6 +180,7 @@ unlisted:
@if test -e unlisted ; then \
echo "Found `wc -l <unlisted` untranslated files, see:"; ls -l "`pwd`/unlisted" ; \
else echo "Done, all files listed." ; fi
+DISTDIRPAT = '^$(PACKAGE)-$(VERSION)/' # ignore $(distdir)/*
FIND_NOHIDDEN = \( -name '.?*' -prune -false -o ! -name '.?*' \) # skip .foobar dirs & files
# (test_unlisted, POSRC_TYPE, INFILE, OUTFILE)
define test_unlisted
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]