diff options
author | Sean Anderson | 2016-09-09 17:18:17 -0400 |
---|---|---|
committer | Sean Anderson | 2016-09-09 17:29:11 -0400 |
commit | 57aeec672e7529859fd2f67eed8b1fade1be8080 (patch) | |
tree | c1a3a0afd2fe6e5ad3f85cb005c99a5a268c9f25 /brother-hll2380dw.patch | |
parent | 68284715fa24bdd21eab25e7c411b9cf87fdadcd (diff) | |
download | aur-brother-hll2380dw.tar.gz |
Properly target the 2380 rather than the 2360
Diffstat (limited to 'brother-hll2380dw.patch')
-rw-r--r-- | brother-hll2380dw.patch | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/brother-hll2380dw.patch b/brother-hll2380dw.patch index 24ccbd0c00cc..bc32b6ec284e 100644 --- a/brother-hll2380dw.patch +++ b/brother-hll2380dw.patch @@ -1,6 +1,6 @@ -diff -aur pkg.pristine/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW pkg.new/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW ---- pkg.pristine/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW 2016-08-20 21:56:06.302059556 -0400 -+++ pkg.new/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwrapper_HLL2380DW 2016-08-20 21:59:18.332061342 -0400 +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; @@ -14,15 +14,19 @@ diff -aur pkg.pristine/opt/brother/Printers/HLL2380DW/cupswrapper/brother_lpdwra - -$basedir =~ s/$PRINTER\/cupswrapper\/.*$/$PRINTER\//g; - -+my $basedir = "/usr/share/brother/printers/HLL2380DW" ++my $basedir = "/usr/share/brother/Printers/HLL2380DW/"; %units = ( pt => \&pt2dot, mm => \&mm2dot, -@@ -85,6 +77,7 @@ +@@ -83,10 +75,7 @@ + $CUPSINPUT=$ARGV[7]; + } +- +-$PRINTER =~ s/^\/opt\/.*\/Printers\///g; +-$PRINTER =~ s/\/cupswrapper//g; +-$PRINTER =~ s/\///g; ++$PRINTER = "HLL2380DW"; - $PRINTER =~ s/^\/opt\/.*\/Printers\///g; -+$PRINTER =~ s/^\/usr\/share\/.*\/Printers\///g; - $PRINTER =~ s/\/cupswrapper//g; - $PRINTER =~ s/\///g; - + for (my $i = 0 ; $i < @ARGV ; $i ++){ + logprint( 0 , "ARG$i = $ARGV[$i]\n"); |