diff options
author | Gary V. Vaughan <gary@gnu.org> | 2005-10-20 13:45:20 +0000 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2007-10-06 06:42:16 -0600 |
commit | 729fd64aa48aff71ccdc8ed1e14200214843838c (patch) | |
tree | e847d58918096ffe6fde14f4bab879793824fddb /bootstrap | |
parent | 09e3eab41d670e2bab97a24e314a800db83d31d9 (diff) | |
download | m4-729fd64aa48aff71ccdc8ed1e14200214843838c.tar.gz |
* bootstrap (func_update_po): Update pofiles directly from the
translation project.
* po/LINGUAS, po/cs.po, po/de.po, po/el.po, po/fr.po, po/it.po,
po/ja.po, po/nl.po, po/pl.po, po/ru.po, po/sv.po: No need to store
these files under source control anymore.
Suggested by Eric Blake <ebb9@byu.net>
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 42 |
1 files changed, 41 insertions, 1 deletions
@@ -9,6 +9,7 @@ : ${LIBTOOLIZE=libtoolize} : ${RM=rm -f} : ${SED=sed} +: ${DOWNLOAD_PO=yes} ltdldir=ltdl config_aux_dir=$ltdldir/config @@ -47,6 +48,40 @@ func_error () } +## ------------------------------ ## +## Fetch translations. ## +## (taken from GNU tar bootstrap) ## +## ------------------------------ ## + +TP_URL="http://www.iro.umontreal.ca/translation/maint/m4/" + +func_update_po () +{ + if test $# = 1; then + case $1 in + *.po) POFILE=$1 ;; + *) POFILE=$1.po ;; + esac + func_echo "getting translation for $1..." + wget -r -C off $TP_URL/$POFILE + else + func_echo "getting translations into po..." + (cd po && + rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'` && + wget -nv -nd -r -l 1 -A .po -C off $TP_URL && + rm -f index.html index.html.[0-9]* + ls *.po | sed 's/\.po$//' > LINGUAS + ) || exit + fi +} + +case $DOWNLOAD_PO in + no) ;; + only) func_update_po; exit 0 ;; + yes) func_update_po ;; + *) func_update_po $DOWNLOAD_PO ;; +esac + ## ---------------------------- ## ## Find the gnulib module tree. ## ## ---------------------------- ## @@ -59,7 +94,7 @@ esac # Follow symlinks while test -h "$gnulibdir"; do - + # Resolve symbolic link. sedexpr1='s, -> ,#%%#,' sedexpr2='s,^.*#%%#\(.*\)$,\1,p' @@ -151,4 +186,9 @@ $AUTORECONF --force --verbose --install $AWK -f ./generate.awk ../doc/m4.texinfo > generated.at ) +if test x"$DOWNLOAD_PO" != xno; then + func_echo "If your pofiles are uptodate, you can rerun bootstrap" + func_echo "as \`DOWNLOAD_PO=no $progname' to avoid redownloading." +fi + exit 0 |