m4-patches
[Top][All Lists]
Advanced

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

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


From: Gary V. Vaughan
Subject: FYI: fix-bootstrap-translation-download-on-darwin
Date: Mon, 3 Sep 2007 18:05:40 -0400 (EDT)
User-agent: mailnotify/0.9

Applied to HEAD.

  Index: ChangeLog
  from  Gary V. Vaughan  <address@hidden>
  
        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: address@hidden
  ( '/           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

Attachment: pgphiUBXpVKHC.pgp
Description: PGP signature


reply via email to

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