Is there some reason why awk is called with a pipe from and to, rather
than the input on the command line and an output pipe?
ie why do we use
awk -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >cf_gen_defines.h
rather than
awk -f $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre >cf_gen_defines.h
I ask because the above can cause problems building on cygwin when
cf.data.pre is in DOS style (CRLF at eol). And that will happen if
someone edits cf.data.pre with a windows editor.
by default pipes on cygwin are binary in nature - no CRLF translation
occurs (for fairly obvious reasons :] ). If we can change the awk
command to the second syntax above, the problem goes away because awk
opens cf.data.pre in textmode, so the \r's are filtered. Otherwise we
get \r's in the variables in the cf_defines.h file.
Rob
Received on Sun Feb 25 2001 - 23:32:40 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:34 MST