shithub: riscv

ref: 99e2d549e86cbdf4c364a476b8eb008c8fcff6ec
dir: /sys/doc/cleanps/

View raw version
#!/bin/rc

if(! ~ $#* 1){
	echo usage: cleanps infile >[1=2]
	exit usage
}

{
echo %!PS-Adobe-2.0
cat /sys/doc/preamble
grep -v '^%%DocumentFonts' $1
} > cleanps.tmp
mv cleanps.tmp $1