mkfile 921 B

1234567891011121314151617181920212223242526272829303132333435
  1. BUILTINS=
  2. < /$objtype/mkfile
  3. < /sys/man/fonts
  4. out: permindex dopermind mac
  5. dopermind > out
  6. permindex:V: $O.ptx1
  7. rm -f junk*
  8. for (i in /sys/man/[0-9])
  9. makind1 $i >> junk0
  10. sed 's/0intro/intro/g
  11. s/ +/ /g
  12. s/ +$//' junk0 > junk1
  13. $O.ptx1 -f -w 5.3i -g 0.1i -h 3n -c '.ps 8
  14. .fp 1 R LucidaSans
  15. .ft 1' -i ignore -b bfile -r junk1 >junk2
  16. awk -f dup2.awk junk2 | awk -f dup1.awk | sort -dfut'"' +5 -6 +1 -2 +8 +0 >junk3
  17. mv junk3 junk2
  18. awk -f dup2.awk junk2 | awk -f dup1.awk | sort -dfut'"' +5 -6 +1 -2 +8 +0 >junk3
  19. mv junk3 junk2
  20. awk -f dup2.awk junk2 | awk -f dup1.awk | sort -dfut'"' +5 -6 +1 -2 +8 +0 >junk3
  21. tr A-Z a-z <toc | awk '{ print "\"" $1 "(" $2 ")\"", $3 }' >junk4
  22. awk ' BEGIN { Q = "\""
  23. while(getline <"junk4") toc[$1] = $1 " " $2 }
  24. { $NF = toc[$NF]; print }
  25. ' junk3 >permindex
  26. $O.ptx1: ptx1.c
  27. $CC ptx1.c
  28. $LD -o $O.ptx1 ptx1.$O -lstdio
  29. clean:V:
  30. rm -f junk* ptx1.v *.ptx1 permindex out