X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c3d5a4a78370b1acb883f538864ac896d9b9e7e7..0ffda363409da33824a5bfc52b8f65008a04438e:/bootstrap diff --git a/bootstrap b/bootstrap index 658beaa9..d5ff4966 100755 --- a/bootstrap +++ b/bootstrap @@ -170,7 +170,18 @@ case $SKIP_PO in wget -nv -nd -r -l 1 -A .po -C off \ http://www.iro.umontreal.ca/translation/maint/$package/ && ls *.po | sed 's/\.po$//' >LINGUAS - ) || exit;; + ) || exit + + case $package in + bison) + echo "$0: getting translations into po (please ignore the robots.txt ERROR 404)..." + (cd runtime-po && + rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po$/p'` && + wget -nv -nd -r -l 1 -A .po -C off \ + http://www.iro.umontreal.ca/translation/maint/$package-runtime/ && + ls *.po | sed 's/\.po$//' >LINGUAS + ) || exit + esac;; esac @@ -231,6 +242,15 @@ rm -fr $intl_files_to_remove || exit echo "$0: sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-bison@gnu.org/' po/Makevars.template >po/Makevars ..." sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-bison@gnu.org/' po/Makevars.template >po/Makevars +# Likewise for runtime-po/Makevars, except also change a few other parameters. +sed ' + s/^\(DOMAIN\) *=.*/\1 = bison-runtime/ + s/^\(subdir\) *=.*/\1 = runtime-po/ + s/^\(XGETTEXT_OPTIONS\) *=.*/\1 = --keyword=YY_/ +' runtime-po/Makevars + +# Copy identical files from po to runtime-po. +(cd po && cp -p Makefile.in.in *-quot *.header *.sed *.sin ../runtime-po) # if src/parse-gram.[ch] are out of date, rebuild them. parse_gram_y=`find src/parse-gram.y \