home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-User.iso / usr / lib / ms / end.awk next >
Text File  |  1983-06-23  |  366b  |  22 lines

  1. BEGIN {
  2.     print ".bp"        >  "endnotes"
  3.     print ".nr # 0 1"    >> "endnotes"
  4.     print ".ds # \\\\n+#."    >> "endnotes"
  5.     print ".TL"        >> "endnotes"
  6.     print "ENDNOTES"    >> "endnotes"
  7.     print ".sp"        >> "endnotes"
  8.     }
  9. {
  10.     if ($1 == ".FS") {
  11.         inNote = 1
  12.         print ".IP \\*#" >> "endnotes"
  13.     }
  14.     else if ($1 == ".FE")
  15.         inNote = 0;
  16.  
  17.     else if (inNote)
  18.         print $0 >> "endnotes"
  19.     else
  20.         print
  21. }
  22.