--- foo2hiperc-wrapper.in.orig 2013-12-01 20:25:17 UTC +++ foo2hiperc-wrapper.in @@ -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 2>&1; then - GSBIN=${GSBIN:-gs.foo} +if eval gs -v >/dev/null 2>&1; then + GSBIN=${GSBIN:-gs} else GSBIN=${GSBIN:-gs} fi @@ -539,10 +535,6 @@ create_crd() { none | none.icm | */none.icm) ;; *) - if [ -x /usr/bin/logger ]; then - logger -t "$BASENAME" -p lpr.info -- \ - "`basename $ICC2PS` -o $GAMMAFILE -t$INTENT > $ICCTMP.crd.ps" - fi $ICC2PS -o $GAMMAFILE -t$INTENT > $ICCTMP.crd.ps 2>$ICCTMP.log \ || error "Problem converting .ICM file to Postscript" ;; @@ -723,18 +715,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