Fix exiftool. Fixes Homebrew/homebrew#1283.
This commit is contained in:
parent
776da65d2a
commit
bd3a67ab3b
1 changed files with 9 additions and 1 deletions
|
@ -14,6 +14,14 @@ class Exiftool <Formula
|
|||
|
||||
# Link the executable script into "bin"
|
||||
bin.mkpath
|
||||
ln_s libexec+"exiftool", bin
|
||||
(bin + 'exiftool').write <<-EOBIN
|
||||
#!/bin/bash
|
||||
|
||||
which_exiftool=`which $0`
|
||||
dirname_exiftool=$(dirname $which_exiftool)
|
||||
readlink_exiftool=$(readlink $which_exiftool)
|
||||
dirname_unlinked_exiftool=$(dirname $dirname_exiftool/$readlink_exiftool)
|
||||
$dirname_unlinked_exiftool/../libexec/exiftool "$@"
|
||||
EOBIN
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue