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++; }
26 /^%!PS/,/^% PCBENDDATA/ {
29 if (index($0, "%%Title:") == 1)
30 sub(",.*$", ", merged layouts");
35 /^% PCBSTARTDATA/,/^% PCBENDDATA/ {