build: translate generated strings

Make sure that xgettext scans generated files for translatable
strings, rather than just files stored in libvirt.git.

* .gnulib: Update, for bootstrap and syntax-check fixes.
* bootstrap: Resynchronize with gnulib.
* cfg.mk (generated_files): Define.
* po/POTFILES.in: Add more files with _().
This commit is contained in:
Eric Blake 2011-05-04 08:18:06 -06:00
parent 8b83cc4219
commit 9d8e01a1db
4 changed files with 17 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3864a29763baff1d01895a57f73729fd53cc5fbf
Subproject commit a6676cca6498ce67c5a3c8d7221b8d6c30b61dc4

View File

@ -1,6 +1,6 @@
#! /bin/sh
# Print a version string.
scriptversion=2011-04-05.18; # UTC
scriptversion=2011-05-03.08; # UTC
# Bootstrap this package from checked-out sources.
@ -421,7 +421,10 @@ check_versions() {
# Honor $APP variables ($TAR, $AUTOCONF, etc.)
appvar=`echo $app | tr '[a-z]-' '[A-Z]_'`
test "$appvar" = TAR && appvar=AMTAR
eval "app=\${$appvar-$app}"
case $appvar in
GZIP) ;; # Do not use $GZIP: it contains gzip options.
*) eval "app=\${$appvar-$app}" ;;
esac
inst_ver=$(get_version $app)
if [ ! "$inst_ver" ]; then
echo "$me: Error: '$app' not found" >&2

8
cfg.mk
View File

@ -28,6 +28,14 @@ url_dir_list = \
# We use .gnulib, not gnulib.
gnulib_dir = $(srcdir)/.gnulib
# List of additional files that we want to pick up in our POTFILES.in
# This is all gnulib files, as well as generated files for RPC code.
generated_files = \
$(srcdir)/daemon/*_dispatch_*.h \
$(srcdir)/src/remote/*_client_bodies.h \
$(srcdir)/src/remote/*_protocol.[ch] \
$(srcdir)/gnulib/lib/*.[ch]
# Tests not to run as part of "make distcheck".
local-checks-to-skip = \
changelog-check \

View File

@ -1,7 +1,9 @@
daemon/dispatch.c
daemon/libvirtd.c
daemon/remote.c
daemon/remote_dispatch_bodies.h
daemon/stream.c
gnulib/lib/gai_strerror.c
src/conf/cpu_conf.c
src/conf/domain_conf.c
src/conf/domain_event.c
@ -63,6 +65,7 @@ src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_process.c
src/remote/remote_client_bodies.h
src/remote/remote_driver.c
src/secret/secret_driver.c
src/security/security_apparmor.c