FYI: update-translation-project-url

"Gary V. Vaughan" <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
Applied to HEAD.

  Index: ChangeLog
  from  Gary V. Vaughan  <[email protected]>
  
  	The translation project has moved.
  	* bootstrap (func_get_translations): Use the new translation
  	project url.
  	(TP_URL): Removed.
  
  Index: bootstrap
  ===================================================================
  RCS file: /sources/m4/m4/bootstrap,v
  retrieving revision 1.45
  diff -u -u -r1.45 bootstrap
  --- bootstrap 24 Mar 2007 21:29:41 -0000 1.45
  +++ bootstrap 1 Jul 2007 19:48:55 -0000
  @@ -60,9 +60,6 @@
   
   : ${DOWNLOAD_PO=yes}
   
  -# Translation Project URL, for the registry of all projects.
  -TP_URL="http://www.iro.umontreal.ca/translation/registry.cgi?domain="
  -
   # Ensure file names are sorted consistently across platforms.
   # Also, ensure diagnostics are in English, e.g., "wget --help" below.
   LC_ALL=C
  @@ -257,29 +254,31 @@
     domain=$2
     po_file=$3
   
  +  url=http://translationproject.org/domain/$2.html
  +  baseurl=`expr "$url" : '\(.*\)/.*'`
  +
     func_echo "getting translations into $subdir for $domain..."
   
     case $po_file in
       '') (cd $subdir && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'`);;
     esac &&
   
  -  $WGET -nv --cache=off -O "$subdir/$domain.html" "$TP_URL$domain" &&
  +  $WGET -nv --cache=off -O "$subdir/$domain.html" "$url" &&
   
  -  $SED -n 's|.*"http://[^"]*/translation/teams/PO/\([^/"]*\)/'"$domain"'-\([^/"]*\)\.[^."]*\.po".*|\1.\2|p' <"$subdir/$domain.html" |
  -  sort -k 1,1 -k 2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 -k5,5n -k5.5 |
  -  $AWK -F. '
  -    { if (lang && $1 != lang) print lang, ver }
  -    { lang = $1; ver = substr($0, index($0, ".") + 1) }
  -    END { if (lang) print lang, ver }
  -  ' |
  -  $AWK -v domain="$domain" -v po_file="$po_file" -v subdir="$subdir" '
  +  sed -n 's|.*href="\(.*\)/\([^/][^/]*\)/'"$domain"'-\([^/"]*\)\.[^."]*\.po".*|\2:\3:\1|p' <"$subdir/$domain.html" |
  +  sort -t: -k 1,1 -k 2,2n -k2,2 -k3,3n -k3,3 -k4,4n -k4,4 -k5,5n -k5.5 |
  +  awk -F: '
  +    { if (lang && $1 != lang) print lang, ver, $3 }
  +    { lang = $1; ver = $2 }
  +    END { if (lang) print lang, ver, $3 }
  +  ' | awk -v domain="$domain" -v po_file="$po_file" -v baseurl="$baseurl" -v subdir="$subdir" '
       {
         lang = $1
         if (po_file == (lang ".po")) next
   
         ver = $2
         urlfmt = ""
  -      printf "$WGET -nv --cache=off -O %s/%s.po 'http://www.iro.umontreal.ca/translation/teams/PO/%s/%s-%s.%s.po' &&\n", subdir, lang, lang, domain, ver, lang
  +      printf "$WGET -nv --cache=off -O %s/%s.po %s/%s/%s/%s-%s.%s.po &&\n", subdir, lang, baseurl, $3, lang, domain, ver, lang
       }
       END { print ":" }
     ' |
-- 
  ())_.              Email me: [email protected]
  ( '/           Read my blog: http://blog.azazil.net
  / )=         ...and my book: http://sources.redhat.com/autobook
`(_~)_ Join my AGLOCO Network: http://www.agloco.com/r/BBBS7912 
_________________________________________________________
This patch notification generated by vcsapply version 1.0
http://savannah.gnu.org/projects/cvs-utils

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
signature.asc (application/pgp-signature, 186 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGiAVlFRMICSmD1gYRAnC4AJ4hbWZsCkaxM6WsA93yqE+6xb0k+wCffuWW
goBGZP31+yGOo4I13K/NcBQ=
=r6Cw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.