about summary refs log tree commit diff
path: root/pkgs/tools/misc/fxlinuxprintutil/fxlputil.patch
blob: 972152b2cc3e9df3fb347944c6aa78c4a322d259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/usr/bin/fxlputil b/usr/bin/fxlputil
index cdac66d..aa86d02 100755
--- a/usr/bin/fxlputil
+++ b/usr/bin/fxlputil
@@ -7,17 +7,19 @@
 #	TCL=`which fxlputil`
 #fi
 
+wrapper=$(dirname $0)/fxlputil
+
 #set LC_ALL
-locale=`tclsh $0lo.tcl`
+locale=`tclsh ${wrapper}lo.tcl`
 
 case $locale in
 	"ja")
-		env LC_ALL=ja_JP.UTF-8 wish $0.tcl $1
+		env LC_ALL=ja_JP.UTF-8 wish ${wrapper}.tcl $1
 		;;
 	"en")
-		env LC_ALL=en_US.ISO8859-1 wish $0.tcl $1
+		env LC_ALL=en_US.ISO8859-1 wish ${wrapper}.tcl $1
 		;;
 	*)
-		env LC_ALL=C wish $0.tcl $1
+		env LC_ALL=C wish ${wrapper}.tcl $1
 		;;
 esac