Code

Added dcraw-m.dpatch.
[pkg-pfstools.git] / debian / patches / dcraw-m.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## dcraw-m.dpatch by Sebastian Harl <sh@tokkee.org>
3 ##
4 ## DP: Fixed the usage of dcraw(1)'s -m command line option.
5 ## DP: Somewhere in between versions 8.39 and 8.80 the meaning and syntax of
6 ## DP: dcraw's -m command line option has changed. Luckily -m used to be the
7 ## DP: same as the "-o 0" option, which still exists.
9 @DPATCH@
11 --- a/src/fileformat/pfsindcraw.in
12 +++ b/src/fileformat/pfsindcraw.in
13 @@ -51,7 +51,7 @@
14  
15        file_pattern=$1
16  
17 -      dcraw -c -m -4 -w $file_pattern | pfsinppm - 2> /dev/null | \
18 +      dcraw -c -o 0 -4 -w $file_pattern | pfsinppm - 2> /dev/null | \
19            pfstag --set "FILE_NAME=${file_pattern}" --set "LUMINANCE=RELATIVE"
20        
21        shift