aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-06 07:52:37 -0700
committerAdam Vandenberg2010-07-06 07:52:37 -0700
commit90119fff1e6f91ebfcd6b37047ff17d5e768f8ba (patch)
tree56a5bcac2195884ab7ae2baf76d52f97a15495d7 /Library/Formula
parent98f8fbeaf89c90ebac133b3455eb1c566068c3f2 (diff)
downloadhomebrew-90119fff1e6f91ebfcd6b37047ff17d5e768f8ba.tar.bz2
fop - link shell script into bin
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/fop.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/Library/Formula/fop.rb b/Library/Formula/fop.rb
index 0bfab5c52..1358382a1 100644
--- a/Library/Formula/fop.rb
+++ b/Library/Formula/fop.rb
@@ -6,7 +6,15 @@ class Fop <Formula
md5 "7af50bf58924dd22d71d22d8ad90b268"
aka 'apache-fop'
+ def shim_script target
+ <<-EOS.undent
+ #!/bin/bash
+ #{libexec}/#{target} $*
+ EOS
+ end
+
def install
- prefix.install Dir["*"]
+ libexec.install Dir["*"]
+ (bin+'fop').write shim_script('fop')
end
end