Lines 1-45
Link Here
|
1 |
--- lpr-wrapper.in.orig Fri Apr 22 12:01:13 2005 |
|
|
2 |
+++ lpr-wrapper.in Fri Apr 22 12:16:22 2005 |
3 |
@@ -1,4 +1,4 @@ |
4 |
-#!/bin/bash |
5 |
+#!/usr/local/bin/bash |
6 |
|
7 |
# lpr-wrapper --- a wrapper around the lpr command, which can handle |
8 |
# any-to-postscript conversion, options for duplex and n-up printing, |
9 |
@@ -103,7 +103,7 @@ |
10 |
PPDDIR=@datadir@/@PACKAGE@ |
11 |
|
12 |
# global options file |
13 |
-SYST_CONFIG=/etc/lprrc |
14 |
+SYST_CONFIG=@prefix@/etc/lprrc |
15 |
|
16 |
# user's options file |
17 |
USER_CONFIG=.lprrc |
18 |
@@ -488,17 +488,17 @@ |
19 |
OPTSTRING=o:P:#:K:C:J:T:U:i:1:2:3:4:w:cdfghlnmprstv |
20 |
LONGOPTS=help,version,verbose,test,ppd:,tmpdir: |
21 |
|
22 |
-if [ "$HAVE[getopt]" ]; then |
23 |
- OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"` |
24 |
- if [ $? != 0 ]; then |
25 |
- echo "Try --help for more information" > /dev/stderr |
26 |
- exit 1 |
27 |
- fi |
28 |
- eval set -- "$OPTIONS" |
29 |
- dopts "$@" |
30 |
-else |
31 |
+#if [ "$HAVE[getopt]" ]; then |
32 |
+# OPTIONS=`getopt -n $NAME -s bash -l $LONGOPTS -o $OPTSTRING -- $XOPTS "$@"` |
33 |
+# if [ $? != 0 ]; then |
34 |
+# echo "Try --help for more information" > /dev/stderr |
35 |
+# exit 1 |
36 |
+# fi |
37 |
+# eval set -- "$OPTIONS" |
38 |
+# dopts "$@" |
39 |
+#else |
40 |
dopts $XOPTS "$@" |
41 |
-fi |
42 |
+#fi |
43 |
|
44 |
#if no printer given (as option or through environment), use default |
45 |
if [ x"$PRINTER" == x ]; then |