Transform from kernel file to userland source.

This commit is contained in:
David E. O'Brien 2010-01-03 08:33:24 +00:00
parent 567145993f
commit 25255d7808

View File

@ -6,12 +6,16 @@
PROG= pack
NO_MAN=
CFLAGS= -include /usr/include/sys/limits.h \
-include /usr/include/sys/syslog.h
all: regress
pack: pack.c convert.c
convert.c: ../../../sys/kern/kern_acct.c
sed -n '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >$@
sed -n -e 's/log(/syslog(/g' \
-e '/FLOAT_CONVERSION_START/,/FLOAT_CONVERSION_END/p' $? >$@
regress: pack regress.t
./regress.t