diff options
| author | Adam Vandenberg | 2010-06-02 07:29:11 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-02 07:29:14 -0700 |
| commit | a5e4d7270675c01fa33cf1f2a102ad0e6c5430e3 (patch) | |
| tree | a8459bcc2adf958fe00509b10132a7367054703c /Library/Formula/exiftool.rb | |
| parent | 98a31f84d46c4d2bd4c9d4982a1efadac0a1c398 (diff) | |
| download | homebrew-a5e4d7270675c01fa33cf1f2a102ad0e6c5430e3.tar.bz2 | |
Fix exiftool. Fixes #1283.
Diffstat (limited to 'Library/Formula/exiftool.rb')
| -rw-r--r-- | Library/Formula/exiftool.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/exiftool.rb b/Library/Formula/exiftool.rb index 469b057c1..e8a8bd2cb 100644 --- a/Library/Formula/exiftool.rb +++ b/Library/Formula/exiftool.rb @@ -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 |
