summaryrefslogtreecommitdiff
path: root/runoff
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 19:22:24 +0000
committerrsc <rsc>2006-09-06 19:22:24 +0000
commit2a55cc55012ab090c67e25c845cb6cbe3e8fdc56 (patch)
tree45df7e929fd1ae1c139661d5911e9991cf527321 /runoff
parente9d2250e150c9c0d2050d1c9d3435820c2d9f8cb (diff)
downloadxv6-labs-2a55cc55012ab090c67e25c845cb6cbe3e8fdc56.tar.gz
xv6-labs-2a55cc55012ab090c67e25c845cb6cbe3e8fdc56.tar.bz2
xv6-labs-2a55cc55012ab090c67e25c845cb6cbe3e8fdc56.zip
runoff tweaks
Diffstat (limited to 'runoff')
-rwxr-xr-xrunoff5
1 files changed, 3 insertions, 2 deletions
diff --git a/runoff b/runoff
index 96cbb18..caa8a11 100755
--- a/runoff
+++ b/runoff
@@ -82,7 +82,8 @@ awk '
print $1, $3;
}
' $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
(
>s.defs
@@ -118,7 +119,7 @@ awk '
grep Pages: all.ps
# 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 ]
then
(sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps