ports/print/foo2zjs/files/patch-foo2hiperc-wrapper.in
2014-03-31 09:58:27 +00:00

43 lines
1.2 KiB
Text

--- foo2hiperc-wrapper.in.orig 2013-12-02 00:25:17.000000000 +0400
+++ foo2hiperc-wrapper.in 2014-03-31 13:01:56.653808270 +0400
@@ -48,10 +48,6 @@ PATH=$PATH:.
#
# 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:
@@ -158,8 +154,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
@@ -723,18 +719,6 @@ $PREFILTER \
$BC $AIB $COLOR2MONO $NOPLANES $EXTRAPAD $COMPRESSED -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 -- \
- "foo2hiperc -r$RES -g$DIM -p$PAPER -m$MEDIA \
--n$COPIES -d$DUPLEX -s$SOURCE $COLOR $CLIP_UL $CLIP_LR $CLIP_LOG \
-$SAVETONER $BC $AIB $COLOR2MONO $NOPLANES $EXTRAPAD $COMPRESSED"
-fi
-
-#
# Remove cruft
#
if [ $DEBUG -eq 0 ]; then