Package: a2ps
Version: 4.13b-4.3
Tags: patch

/usr/bin/a2ps-lpr-wrapper tries to guess wether /usr/bin/lp or
/usr/bin/lpr are to be used. 

However, I'm a big fan of the rlpr package, which installs /usr/bin/rlpr 
with a 100% compatible interface to lpr, but doesn't require one to 
run a local queue with a lpr daemon.

Proposed patch to include support:

---cut
--- /usr/bin/a2ps-lpr-wrapper   2005-01-20 22:47:16.000000000 +0100
+++ /tmp/a2ps-lpr-wrapper       2006-03-30 19:32:40.820765000 +0200
@@ -5,8 +5,15 @@
 
 # If /usr/bin/lp (from cupsys-client) exists, just use it.
 if [ -x /usr/bin/lp ]; then
-  /usr/bin/lp $*
-else
+  /usr/bin/lp $@
+elsif [ -x /usr/bin/lpr ]
   # In case /usr/bin/lp is not available, then fall back /usr/bin/lpr.
-  /usr/bin/lpr $*
+  /usr/bin/lpr $@
+elsif [ -x /usr/bin/rlpr ]
+  # In case /usr/bin/lpr is not available, then fall back
/usr/bin/rlpr.
+  /usr/bin/rlpr $@
+else 
+  # If lp,lpr and rlpr are not available, fail
+  echo "$0: lp/lpr/rlpr missing!"
+  exit 1
 fi
---cut

Regards,

Anders


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to