diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-07-17 20:29:40 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-07-17 20:29:40 +0000 |
commit | 6ec3f553fe985ad58d64ea49663812e78aed41ef (patch) | |
tree | 32e83509df00959de191eacef1b4d8fd6fc16b74 /gcc/po | |
parent | 3aefaf22030b5c776d7b6949cb914a735ff147dd (diff) | |
download | gcc-6ec3f553fe985ad58d64ea49663812e78aed41ef.tar.gz |
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
Diffstat (limited to 'gcc/po')
-rw-r--r-- | gcc/po/exgettext | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/po/exgettext b/gcc/po/exgettext index 83e39239dcf..93f65c34370 100644 --- a/gcc/po/exgettext +++ b/gcc/po/exgettext @@ -58,6 +58,9 @@ kopt=$pwd/$T/keyword-options emsg=$pwd/$T/emsgids.c 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 # in $srcdir are examined, likewise $srcdir/config and $srcdir/config/* # (directories). Also, all subdirectories of $srcdir that contain a @@ -75,11 +78,13 @@ echo "scanning for keywords and %e strings..." >&2 ( cd $srcdir lang_subdirs=`echo */config-lang.in | sed -e 's|config-lang\.in||g'` - for dir in "" config/ config/*/ $lang_subdirs - do for glob in '*.c' '*.h' '*.def' - do eval echo $dir$glob - done - done | tr ' ' "$nl" | grep -v '\*' | + { for dir in "" config/ config/*/ $lang_subdirs + do for glob in '*.c' '*.h' '*.def' + do eval echo $dir$glob + done + done; + echo $extra_files; + } | tr ' ' "$nl" | grep -v '\*' | $AWK -v excl=po/EXCLUDES -v posr=$posr -v kopt=$kopt -v emsg=$emsg ' function keyword_option(line) { paren_index = index(line, "(") |