Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Mar 2011 21:33:33 +0000 (UTC)
From:      Ryan Stone <rstone@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/tools fw_stub.awk
Message-ID:  <201103312133.p2VLXnon052949@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rstone      2011-03-31 21:33:33 UTC

  FreeBSD src repository

  Modified files:
    sys/tools            fw_stub.awk 
  Log:
  SVN rev 220227 on 2011-03-31 21:33:33Z by rstone
  
  GNU awk does not output escaped newlines in multi-line printc statements. This
  leads to compile errors when trying to compile firmware(9) stubs created with
  gawk, as multiple #include statements end up on the same line.  Replace the
  multi-line printc statement that outputs all of the #includes with one printc
  per #include.  This allows modules compatible with firmware(9) to be cross-built
  from a Linux machine without requiring the one true awk to be installed.
  
  I've intentionally done the minimal set of changes necessary to make gawk
  produce valid (but not pretty) C code, to reduce the churn and keep fw_stubs.awk
  as readable as possible.
  
  Approved by:    emaste (mentor)
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.9       +8 -8      src/sys/tools/fw_stub.awk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103312133.p2VLXnon052949>