runoff tweaks

This commit is contained in:
rsc 2006-09-06 19:22:24 +00:00
parent e9d2250e15
commit 2a55cc5501
4 changed files with 11 additions and 9 deletions

View file

@ -65,8 +65,8 @@ PRINT = \
types.h param.h defs.h x86.h asm.h elf.h mmu.h spinlock.h\ types.h param.h defs.h x86.h asm.h elf.h mmu.h spinlock.h\
bootasm.S bootother.S main.c init.c spinlock.c\ bootasm.S bootother.S main.c init.c spinlock.c\
proc.h proc.c setjmp.S kalloc.c\ proc.h proc.c setjmp.S kalloc.c\
syscall.h trapasm.S traps.h trap.c vectors.pl syscall.c\ syscall.h trapasm.S traps.h trap.c vectors.pl syscall.c sysproc.c\
buf.h dev.h fcntl.h stat.h file.h fs.h fsvar.h fd.c fs.c bio.c ide.c\ buf.h dev.h fcntl.h stat.h file.h fs.h fsvar.h fd.c fs.c bio.c ide.c sysfile.c\
pipe.c\ pipe.c\
mp.h ioapic.h mp.c lapic.c ioapic.c picirq.c\ mp.h ioapic.h mp.c lapic.c ioapic.c picirq.c\
console.c\ console.c\

5
runoff
View file

@ -82,7 +82,8 @@ awk '
print $1, $3; print $1, $3;
} }
' $files >defs ' $files >defs
9 sed -n 's/^([0-9]+ [a-zA-Z0-9_]+)(.*)$/\1/p' $files |
perl -n -e 'print if s/^([0-9]+ [a-zA-Z0-9_]+)\(.*$/\1/;' $files |
egrep -v ' (usage|main|if|for)$' >>defs egrep -v ' (usage|main|if|for)$' >>defs
( (
>s.defs >s.defs
@ -118,7 +119,7 @@ awk '
grep Pages: all.ps grep Pages: all.ps
# if we have the nice font, use it # if we have the nice font, use it
nicefont=/home/am8/rsc/plan9/sys/lib/postscript/font/LucidaSans-Typewriter83 nicefont=~rsc/plan9/sys/lib/postscript/font/LucidaSans-Typewriter83
if [ -f $nicefont ] if [ -f $nicefont ]
then then
(sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps (sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps

View file

@ -32,19 +32,21 @@ traps.h
trap.c trap.c
vectors.pl vectors.pl
syscall.c syscall.c
sysproc.c
# file system # file system
buf.h buf.h
dev.h dev.h
fcntl.h fcntl.h
stat.h stat.h
fd.h file.h
fs.h fs.h
fsvar.h fsvar.h
fd.c
fs.c
bio.c
ide.c ide.c
bio.c
fs.c
file.c
sysfile.c
# pipes # pipes
pipe.c pipe.c

View file

@ -32,4 +32,3 @@ longjmp:
movl $1, %eax /* return value (appears to come from setjmp!) */ movl $1, %eax /* return value (appears to come from setjmp!) */
ret ret