summarylogtreecommitdiffstats
path: root/brother-hll2380dw.patch
blob: bc32b6ec284e988cd02d0b46c32088fde4176d54 (plain)
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
29
30
31
32
diff -aur pristine/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW new/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW
--- pristine/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW	2016-08-21 00:24:32.495475668 -0400
+++ new/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW	2016-08-21 00:26:23.022143362 -0400
@@ -43,15 +43,7 @@
 $width=-1;
 $height=-1;
 
-#my $basedir = Cwd::realpath ($0);
-my $basedir = `readlink $0`;
-if ( $basedir eq '' ){
-    $basedir = `realpath $0`;
-}
-chomp($basedir);
-
-$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g;
-
+my $basedir = "/usr/share/brother/Printers/HLL2380DW/";
 
 %units = ( pt   => \&pt2dot, 
 	   mm   => \&mm2dot, 
@@ -83,10 +75,7 @@
     $CUPSINPUT=$ARGV[7];
 }
 
-
-$PRINTER =~ s/^\/opt\/.*\/Printers\///g;
-$PRINTER =~ s/\/cupswrapper//g;
-$PRINTER =~ s/\///g;
+$PRINTER = "HLL2380DW";
 
 for  (my $i = 0 ; $i < @ARGV ; $i ++){
     logprint( 0 , "ARG$i      = $ARGV[$i]\n");