postprocess: allow using dcraw_emu from Debian
As `dcraw_emu` is an example program, Debian doesn't install it to `/usr/bin`, but to `/usr/lib/libraw` instead, meaning it can't be found the usual way. This patch checks for `/usr/lib/libraw/dcraw_emu` if `command` can't find it. Additionnally, cascaded if's are replaced with if..elif statements, so we stop searching as soon as a matching program (preferably `dcraw_emu`) is found.
This commit is contained in:

committed by
Martijn Braam

parent
1872efd3d9
commit
7f8b6520c6
@@ -40,8 +40,11 @@ then
|
||||
DCRAW=dcraw_emu
|
||||
# -fbdd 1 Raw denoising with FBDD
|
||||
set -- -fbdd 1
|
||||
fi
|
||||
if command -v "dcraw" > /dev/null
|
||||
elif [ -x "/usr/lib/libraw/dcraw_emu" ]; then
|
||||
DCRAW=/usr/lib/libraw/dcraw_emu
|
||||
# -fbdd 1 Raw denoising with FBDD
|
||||
set -- -fbdd 1
|
||||
elif command -v "dcraw" > /dev/null
|
||||
then
|
||||
DCRAW=dcraw
|
||||
TIFF_EXT="tiff"
|
||||
|
Reference in New Issue
Block a user