This commit is contained in:
Adam Vandenberg 2010-06-02 07:29:11 -07:00
parent 776da65d2a
commit bd3a67ab3b

View file

@ -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