home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / laser / postprn.arc / PS2INC.AWK < prev    next >
Text File  |  1989-06-16  |  431b  |  17 lines

  1. # compress and output PostScript as assembly language data.
  2. outfile != FILENAME {
  3.     outfn = outfile = FILENAME;
  4.     gsub(/.[^.]*$/, ".inc", outfn);
  5. }
  6. {
  7.     gsub(/%.*$/,"");        # strip comments
  8.     gsub(/[\t ]+/, " ");        # fold multiple whitespace into single.
  9.     gsub(/^ +/, "");        # strip leading whitespace
  10.     if ($0 != "") {            # don't print blank lines.
  11.         printf("db '%s '\n", $0) >outfn;
  12.     }
  13. }
  14.  
  15. END {
  16.     print "db CR,LF\n" >outfn;
  17. }