File: lpr.wrapper

package info (click to toggle)
gpr 0.15deb-2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 3,328 kB
  • ctags: 590
  • sloc: sh: 6,303; ansic: 3,409; makefile: 84; sed: 16
file content (22 lines) | stat: -rwxr-xr-x 396 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

lpr=/usr/bin/lpr.not.gpr

[ "$DISPLAY"x = x ] && exec  $lpr "$@"

test -t 1 && exec $lpr "$@"

test "$DO_NOT_CALL_GPR_INSTEAD_OF_LPR" = yes  && exec $lpr "$@"
#for i in "$@" ;
# case $i in 
#   -P)  continue;;
#   -d)  continue;;
#   -r)  continue;;
#   -d)  continue;;
#   -d)  continue;;
#done

DO_NOT_CALL_GPR_INSTEAD_OF_LPR=yes
export DO_NOT_CALL_GPR_INSTEAD_OF_LPR

exec gpr "$@"