aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/exiftool.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/exiftool.rb')
-rw-r--r--Library/Formula/exiftool.rb10
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