Import sources from 2011-03-30 iso image - sys/lib

This commit is contained in:
Taru Karttunen 2011-03-30 16:53:33 +03:00
parent b41b903422
commit e463eb4036
1144 changed files with 388460 additions and 0 deletions

24
sys/lib/lp/process/gspipe Executable file
View file

@ -0,0 +1,24 @@
#!/bin/rc
if (! ~ $DEBUG '') flag x +
# usage: gspipe [dev]
# assumes postscript on stdin
switch($#*) {
case 0
GSDEVICE=`{echo $LPCLASS | sed 's/(.*\+)?gs!([^+]*)(\+.*)?/\2/'}
case 1
GSDEVICE=$1
case *
echo 'usage: gspipe [dev]' >[1=2]
exit gspipe
}
GSTMPFILE=/tmp/gsp^$pid
GSOPT=('-sDEVICE='^$GSDEVICE '-sOUTPUTFILE='$GSTMPFILE -dSAFER -dNOPAUSE -dQUIET -dBATCH)
gs $GSOPT - >/dev/null
cat $GSTMPFILE
rm -f $GSTMPFILE
exit ''