]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 220227:
authorrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 11 Nov 2011 02:02:55 +0000 (02:02 +0000)
committerrstone <rstone@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 11 Nov 2011 02:02:55 +0000 (02:02 +0000)
commit2e5a8f31ee76be9085417ad7e0cc7c20e0bcb45d
tree2e614e0d203540aff5cac9ebbefad5d7eafa1b6c
parent0ffc2e338a7606a64c9f8317624ecf31ece76e72
MFC 220227:

 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@227437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/tools/fw_stub.awk