m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: automatically download pofiles at bootstrap [m4--devo--1.0--patch-2


From: Gary V. Vaughan
Subject: FYI: automatically download pofiles at bootstrap [m4--devo--1.0--patch-21]
Date: Thu, 20 Oct 2005 14:46:07 +0100 (BST)
User-agent: mailnotify/0.7

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Applied to HEAD.

  * looking for address@hidden/m4--devo--1.0--patch-21 to compare with
  * comparing to address@hidden/m4--devo--1.0--patch-21
  D  po/.arch-ids/LINGUAS.id
  D  po/LINGUAS
  D  po/cs.po
  D  po/de.po
  D  po/el.po
  D  po/fr.po
  D  po/it.po
  D  po/ja.po
  D  po/nl.po
  D  po/pl.po
  D  po/ru.po
  D  po/sv.po
  M  bootstrap
  M  ChangeLog
  
  * modified files
  
  Index: Changelog
  from  Gary V. Vaughan  <address@hidden>
  
        * 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 <address@hidden>
  
  --- orig/bootstrap
  +++ mod/bootstrap
  @@ -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 @@
   }
   
   
  +## ------------------------------ ##
  +## 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 @@
   
   # Follow symlinks
   while test -h "$gnulibdir"; do
  -  
  +
       # Resolve symbolic link.
       sedexpr1='s, -> ,#%%#,'
       sedexpr2='s,^.*#%%#\(.*\)$,\1,p'
  @@ -151,4 +186,9 @@
     $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
  
  
  
- -- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook
_________________________________________________________
This patch notification generated by tlaapply version 1.0
http://tkd.kicks-ass.net/arch/address@hidden/cvs-utils--tla--1.0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFDV5+dFRMICSmD1gYRAqNiAKCjzh28wPU9qg0hBKO/tDjtXXtpwACgnI84
lTX0AxyOl1R+HmvCxYruHPA=
=IRNY
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]