home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / unixtex-6.1b-src.lha / unixtex-6.1b / dviljk / contrib / rmligdups.awk < prev    next >
Encoding:
Text File  |  1994-02-10  |  390 b   |  15 lines

  1. # At kern steps, just save away the value, so only the last one will be output.
  2. /\(KRN/        { lk_table[$3] = $0; next }
  3.  
  4. # Assume (STOP)'s are in the right place.
  5. # This rearranges the order, but oh well.
  6. # It's random by the time the vpl file has been written anyway.
  7. /\(STOP\)/    { for (lk in lk_table)
  8.             {
  9.               print lk_table[lk];
  10.               delete lk_table[lk];
  11.             }
  12.         }
  13.  
  14.         { print }
  15.