File: lpr.wrapper

package info (click to toggle)
gpr 0.9deb-4sarge
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,236 kB
  • ctags: 228
  • sloc: sh: 9,476; ansic: 3,424; makefile: 112
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 "$@"