9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Re: CRLFication (was: libbio and CR-LF)
@ 2003-02-26  0:14 Geoff Collyer
  0 siblings, 0 replies; only message in thread
From: Geoff Collyer @ 2003-02-26  0:14 UTC (permalink / raw)
  To: 9fans

I mistakenly shipped a version of dial that uses bicp by default,
which won't work yet; bicp needs a little more work.  Meanwhile, if
you change

	cmd=bicp		# dialcp
to
	cmd=dialcp

you'll get better results.  I'm enclosing dialcp and diallp,
which is specifically intended for PostScript printing.


# To unbundle, run this file
echo dialcp
sed 's/^X//' >dialcp <<'!'
X#!/bin/rc
X# dialcp net - bidirectional copy between stdin, stdout and net
rfork e
cat $1 &
cat >$1
exstat=$status
sleep 1		# wait for any response
if (test -e /proc/$apid/note)
X	echo kill >/proc/$apid/note
exit $exstat
!
echo diallp
sed 's/^X//' >diallp <<'!'
X#!/bin/rc
X# diallp net - bidirectional copy between stdin, stdout and net (ps printer)
rfork es

awk '
X/[\x04
]/	{ gsub(/[\x04
]/, "") }
X!/^%\[ / { next }
X/''/	{ gsub(/''/, "''''") }
X	{ print "echo ''" $0 "''" }
X/flushing|Error/ { print "echo kill >/proc/$pid/notepg"; exit }
X# /printererror/
X' | rc &
cat >$1
exstat=$status
sleep 1		# wait for any response
if (test -e /proc/$apid/note)
X	echo kill >/proc/$apid/note
exit $exstat
!


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-26  0:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-26  0:14 [9fans] Re: CRLFication (was: libbio and CR-LF) Geoff Collyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).