Kevin J. McCarthy wrote: > David Champion wrote: > > Does the attached patch work on BSD? (Please save to patch, don't use > > copy/paste.)
After spending the afternoon trying to figure out kvm, I was able to
install FreeBSD, confirm the reported bugs, and test both patches.
The sed patch alone resulted in correct output. There were no \r or
\t in the input to it, so I tested it against itself (cat txt2c.sh |
./txt2c.sh) to make sure it was translating \r and \t properly.
When the makefile patch was added it also seemed to work: txt2c was
compiled and the conststrings.c turned into arrays of hex chars.
The only question is whether there is a better makefile fix than:
- -$${NATIVECC-$(CC)} -o $@ $<
+ -$${NATIVECC-$(CC)} -o $@ `test -f 'txt2c.c' || echo
'$(srcdir)/'`txt2c.c
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt
signature.asc
Description: PGP signature
