mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Backport f0a669014f
from master
Exclude generated files from .po string extraction. Original author: Georg Baum
This commit is contained in:
parent
a31a9d9ba5
commit
7dde9ba952
@ -7,11 +7,12 @@ POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
|
||||
|
||||
$(DOMAIN).pot-update: l10n_pots
|
||||
|
||||
# The ui_*.h and moc_*.cpp filters must match the patterns in src/frontends/qt4/Makefile.am
|
||||
${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
|
||||
LC_ALL=C ; export LC_ALL ; \
|
||||
rm -f $@-t \
|
||||
&& ( cd $(top_srcdir); \
|
||||
grep -l "_(\".*\")" `find src \( -name '*.h' -o -name '*.cpp' -o -name '*.cpp.in' \) -print` |\
|
||||
grep -l "_(\".*\")" `find src \( \( -name '*.h' -a ! -name 'ui_*.h' \) -o \( -name '*.cpp' -a ! -name 'moc_*.cpp' \) \) -print` |\
|
||||
sort | uniq ) > $@-t \
|
||||
&& mv $@-t $@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user