Commit 6ec3f553 by Neil Booth Committed by Neil Booth

Makefile.in: Depend .pot generation on options.c.

	* Makefile.in: Depend .pot generation on options.c.
	* po/exgettext: Add an extra_files variable containing additional
	files to scan.

From-SVN: r69524
parent 3aefaf22
2003-07-17 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Depend .pot generation on options.c.
* po/exgettext: Add an extra_files variable containing additional
files to scan.
2003-07-17 Zack Weinberg <zack@codesourcery.com> 2003-07-17 Zack Weinberg <zack@codesourcery.com>
* c-decl.c: Fix typos in several comments. Remove all * c-decl.c: Fix typos in several comments. Remove all
......
...@@ -2332,7 +2332,7 @@ intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h Makefile ...@@ -2332,7 +2332,7 @@ intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h Makefile
# Make-lang.in should add dependencies of po-generated on any generated # Make-lang.in should add dependencies of po-generated on any generated
# files which need to be scanned by gettext (usually Yacc-generated parsers). # files which need to be scanned by gettext (usually Yacc-generated parsers).
po-generated: $(parsedir)/c-parse.c po-generated: $(parsedir)/c-parse.c options.c
# #
# Remake cpp and protoize. # Remake cpp and protoize.
......
...@@ -58,6 +58,9 @@ kopt=$pwd/$T/keyword-options ...@@ -58,6 +58,9 @@ kopt=$pwd/$T/keyword-options
emsg=$pwd/$T/emsgids.c emsg=$pwd/$T/emsgids.c
posr=$pwd/$T/po-sources posr=$pwd/$T/po-sources
# Extra files to scan
extra_files=$pwd/options.c
# Locate files to scan, and generate the list. All .c, .h, and .def files # Locate files to scan, and generate the list. All .c, .h, and .def files
# in $srcdir are examined, likewise $srcdir/config and $srcdir/config/* # in $srcdir are examined, likewise $srcdir/config and $srcdir/config/*
# (directories). Also, all subdirectories of $srcdir that contain a # (directories). Also, all subdirectories of $srcdir that contain a
...@@ -75,11 +78,13 @@ echo "scanning for keywords and %e strings..." >&2 ...@@ -75,11 +78,13 @@ echo "scanning for keywords and %e strings..." >&2
( cd $srcdir ( cd $srcdir
lang_subdirs=`echo */config-lang.in | sed -e 's|config-lang\.in||g'` lang_subdirs=`echo */config-lang.in | sed -e 's|config-lang\.in||g'`
for dir in "" config/ config/*/ $lang_subdirs { for dir in "" config/ config/*/ $lang_subdirs
do for glob in '*.c' '*.h' '*.def' do for glob in '*.c' '*.h' '*.def'
do eval echo $dir$glob do eval echo $dir$glob
done done
done | tr ' ' "$nl" | grep -v '\*' | done;
echo $extra_files;
} | tr ' ' "$nl" | grep -v '\*' |
$AWK -v excl=po/EXCLUDES -v posr=$posr -v kopt=$kopt -v emsg=$emsg ' $AWK -v excl=po/EXCLUDES -v posr=$posr -v kopt=$kopt -v emsg=$emsg '
function keyword_option(line) { function keyword_option(line) {
paren_index = index(line, "(") paren_index = index(line, "(")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment