3 # merges PostScript files created by pcb (version >= 1.4.2) into
4 # a single file for backward compatibility
12 echo "Usage: `basename $0` files..." >&2
16 # some system need nawk
24 BEGIN { filecount = 0; }
25 /^%!PS/ { filecount++; if (filecount > 1) { print "Black"; } }
26 /^%!PS/,/^% PCBENDDATA/ {
29 if (index($0, "%%Title:") == 1)
30 sub(",.*$", ", merged layouts");
31 if (index($0, "Black") == 1)
32 sub ("Black", "0.9 mysetgray");
37 /^% PCBSTARTDATA/,/^% PCBENDDATA/ {