mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
2437526fd1
PR: 158040 Submitted by: bsam
47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
--- foo2zjs-wrapper.in.orig 2011-01-15 02:21:39.000000000 +0300
|
|
+++ foo2zjs-wrapper.in 2011-06-19 21:29:39.781636207 +0400
|
|
@@ -53,13 +53,6 @@ PREFIX=/usr
|
|
SHARE=$PREFIX/share/foo2zjs
|
|
PATH=$PATH:/sw/bin:/opt/local/bin
|
|
|
|
-#
|
|
-# Log the command line, for debugging and problem reports
|
|
-#
|
|
-if [ -x /usr/bin/logger -o -x /bin/logger ]; then
|
|
- logger -t "$BASENAME" -p lpr.info -- "$BASENAME $@" </dev/null
|
|
-fi
|
|
-
|
|
usage() {
|
|
cat <<EOF
|
|
Usage:
|
|
@@ -187,8 +180,8 @@ nup() {
|
|
#
|
|
# N.B. := operator used here, when :- would be better, because "ash"
|
|
# doesn't have :-
|
|
-if eval gs.foo -v >/dev/null 2>&1; then
|
|
- GSBIN=${GSBIN:-gs.foo}
|
|
+if eval gs -v >/dev/null 2>&1; then
|
|
+ GSBIN=${GSBIN:-gs}
|
|
else
|
|
GSBIN=${GSBIN:-gs}
|
|
fi
|
|
@@ -900,18 +893,6 @@ $PREFILTER \
|
|
$BC $AIB $COLOR2MONO $NOPLANES $EXTRAPAD -D$DEBUG
|
|
|
|
#
|
|
-# Log the command line, for debugging and problem reports
|
|
-#
|
|
-if [ -x /usr/bin/logger ]; then
|
|
- logger -t "$BASENAME" -p lpr.info -- \
|
|
- "$GSBIN $PAPERSIZE -g$DIM -r$RES $GSDEV $GSOPTS $GAMMAFILE"
|
|
- logger -t "$BASENAME" -p lpr.info -- \
|
|
- "foo2zjs -r$RES -g$DIM -p$PAPER -m$MEDIA \
|
|
--n$COPIES -d$DUPLEX -s$SOURCE -z$MODEL $COLOR $CLIP_UL $CLIP_LR $CLIP_LOG \
|
|
-$SAVETONER -T$DENSITY $BC $AIB $COLOR2MONO $NOPLANES $EXTRAPAD"
|
|
-fi
|
|
-
|
|
-#
|
|
# Remove cruft
|
|
#
|
|
if [ $DEBUG -eq 0 ]; then
|