Currently, when making gdb.pot:
...
$ cd build/gdb
$ make po/gdb.pot
test -d po || mkdir po
sh -e /data/vries/gdb/src/gdb/po/gdbtext /usr/bin/xgettext gdb . /data/vries/gdb/src/gdb
$
...
only strings from build/gdb and gdb are added.
Also add strings from gdbsupport and gdbserver.
Update gdb/po/gdbtext to handle the .cc files in gdbsupport and gdbserver.
Approved-By: Tom Tromey <tom@tromey.com>
$(PACKAGE).pot: po/$(PACKAGE).pot
po/$(PACKAGE).pot: force
-test -d po || mkdir po
- sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir)
+ sh -e $(srcdir)/po/gdbtext $(XGETTEXT) $(PACKAGE) . $(srcdir) \
+ $(srcdir)/../gdbsupport $(srcdir)/../gdbserver
#
-name '*-stub.c' -prune -o \
-name 'testsuite' -prune -o \
-name 'init.c' -prune -o \
- -name '*.[hc]' -print
+ -name '*.[hc]' -o -name '*.cc' -print
)
done | ${xgettext} \
--default-domain=${package} \