FYI: fix-bootstrap-translation-download-on-darwin

"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]>
  
  	Work around a bug in darwin's awk:
  
  	* bootstrap (func_get_translations): Use $AWK instead of raw
  	`awk' so that the user can use an alternative implementation
  	if the first awk in PATH doesn't behave as expected.
  	(func_get_translations): The first awk script mangles the last
  	entry passed to it for at least the awk implementation shipped
  	with Darwin 8.10.1.  Capture $3 into a variable too to work-
  	around that problem.
  
  Index: bootstrap
  ===================================================================
  RCS file: /sources/m4/m4/bootstrap,v
  retrieving revision 1.51
  diff -u -u -r1.51 bootstrap
  --- bootstrap 30 Aug 2007 00:51:32 -0000 1.51
  +++ bootstrap 3 Sep 2007 22:03:48 -0000
  @@ -276,11 +276,11 @@
   
     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" '
  +  $AWK -F: '
  +    { if (lang && $1 != lang) print lang, ver, subdir }
  +    { lang = $1; ver = $2; subdir = $3 }
  +    END { if (lang) print lang, ver, subdir }
  +  ' | $AWK -v domain="$domain" -v po_file="$po_file" -v baseurl="$baseurl" -v subdir="$subdir" '
       {
         lang = $1
         if (po_file == (lang ".po")) next
-- 
  ())_.              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)

iD8DBQFG3IUwFRMICSmD1gYRAlY+AKDHyg7XNHfo6zeTkZHUHwXyfRXJPQCdG9OH
s/sOa2iMA8vjCgwyB9VrYwo=
=61Bq
-----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.