X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=bootstrap;h=aa3c5dc27e11424a60d17e5c9902b25ac786a45e;hp=73a5e046110c8986340aed2822c932831aef32e4;hb=03e59ae92a640def5e651eb092e8e8dba8c0daab;hpb=480a489ee4c31cb2f9c9f45941645f05b5f74c67 diff --git a/bootstrap b/bootstrap index 73a5e04..aa3c5dc 100755 --- a/bootstrap +++ b/bootstrap @@ -46,7 +46,7 @@ case ${GNULIB_SRCDIR--} in # Redirect the gnulib submodule to the directory on the command line # if possible. if test -d "$GNULIB_SRCDIR"/.git && \ - git config --file .gitmodules submodule.gnulib.url >/dev/null; then + git config --file .gitmodules submodule.gnulib.url >/dev/null; then git submodule init GNULIB_SRCDIR=`cd $GNULIB_SRCDIR && pwd` git config --replace-all submodule.gnulib.url $GNULIB_SRCDIR @@ -60,9 +60,26 @@ 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 +(cd daemon && mkdir -p tests lib && $GNULIB_SRCDIR/../gnulib-tool --update) + modules=' gitlog-to-changelog gnu-make