Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
if (! ~ $DEBUG '') flag x +
3
if (~ $OUTDEV -) OUTDEV=/fd/1
4
 
5
# make a place for pc's to spool files that is private
6
ramfs
7
mkdir /tmp/log /tmp/prob /tmp/queue
8
bind -b /tmp/log $LPLIB/log
9
bind -b /tmp/prob $LPLIB/prob
10
bind -b /tmp/queue $LPLIB/queue
11
 
12
if (~ $#* 0) {
13
	@{bind -b $LPLIB/process /bin; $LPPROC} | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
14
	if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
15
}
16
if not {
17
	for (i in $*) {
18
		@{bind -b $LPLIB/process /bin; $LPPROC} < $i  | aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ > $OUTDEV
19
		if (! ~ $LPDEST stdout) echo -n `{ascii -t 4} > $OUTDEV
20
	}
21
}
22
exit ''