summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-05 08:01:38 -0400
committerJim Meyering <meyering@redhat.com>2009-08-05 15:23:39 +0200
commita86f512716d0e9054d4c409ef77b0115e8e1d56a (patch)
treedff4937261f6275be2e74658f0a6ee1a38d84891 /bootstrap
parent0c463dd0aa962c405b1be32c925acf9891c96bfc (diff)
downloadlibguestfs-a86f512716d0e9054d4c409ef77b0115e8e1d56a.tar.gz
libguestfs-a86f512716d0e9054d4c409ef77b0115e8e1d56a.tar.xz
libguestfs-a86f512716d0e9054d4c409ef77b0115e8e1d56a.zip
build: generate some just-removed files in po/
* bootstrap: Generate po/Makevars and po/LINGUAS.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index e4ddf851..d46b3be3 100755
--- a/bootstrap
+++ b/bootstrap
@@ -60,6 +60,21 @@ case ${GNULIB_SRCDIR--} in
;;
esac
+ls po/*.po 2>/dev/null | sed 's|.*/||; s|\.po$||' > po/LINGUAS
+
+# Create gettext configuration.
+echo "$0: Creating po/Makevars from po/Makevars.template ..."
+rm -f po/Makevars
+sed '
+ /^EXTRA_LOCALE_CATEGORIES *=/s/=.*/= '"$EXTRA_LOCALE_CATEGORIES"'/
+ /^MSGID_BUGS_ADDRESS *=/s/=.*/= '"$MSGID_BUGS_ADDRESS"'/
+ /^XGETTEXT_OPTIONS *=/{
+ s/$/ \\/
+ a\
+ '"$XGETTEXT_OPTIONS"' $${end_of_xgettext_options+}
+ }
+' po/Makevars.template >po/Makevars
+
gnulib_tool=$GNULIB_SRCDIR/gnulib-tool
<$gnulib_tool || exit