[beast: 13/16] PO: ignore docs/doxy/ when searching for translatable files
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 13/16] PO: ignore docs/doxy/ when searching for translatable files
- Date: Sat, 18 Mar 2017 22:09:38 +0000 (UTC)
commit 64bd035b027ba4d288fb723619a197cc51f88149
Author: Tim Janik <timj gnu org>
Date: Sat Mar 18 22:48:53 2017 +0100
PO: ignore docs/doxy/ when searching for translatable files
Signed-off-by: Tim Janik <timj gnu org>
po/Makefile.am | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/po/Makefile.am b/po/Makefile.am
index 9ec3e44..6fcf156 100644
--- a/po/Makefile.am
+++ b/po/Makefile.am
@@ -233,7 +233,7 @@ unlisted:
@rm -f unlisted
@ # list possible POT sources...
$(Q) (cd $(top_srcdir) && set -o pipefail \
- && find . $(FIND_NOHIDDEN) -type f -print) \
+ && find . $(FIND_NOHIDDEN) -type f $(patsubst %, ! -path \*/%, $(IGNORE_UNLISTED)) -print) \
| sed 's,^\./,,' \
| grep -vxF -f $(srcdir)/POTSCAN -f $(srcdir)/POTSKIP \
| grep -vEf $(srcdir)/POTIGNORE -e '^_(inst|build)/' -e $(DISTDIRPAT) > "xgen-$(@F)"
@@ -248,6 +248,9 @@ unlisted:
else echo "Done, all files listed." ; fi
DISTDIRPAT = '^$(PACKAGE)-$(VERSION)/' # ignore $(distdir)/*
FIND_NOHIDDEN = \( -name '.?*' -prune -false -o ! -name '.?*' \) # skip .foobar dirs & files
+IGNORE_UNLISTED = $(strip \
+ docs/doxy/* \
+)
# (test_unlisted, POSRC_TYPE, INFILE, OUTFILE)
# use 'readlink -ve' to catch missing files
define test_unlisted
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]