diff options
| author | Adam Vandenberg | 2012-02-25 16:53:55 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-25 16:54:05 -0800 |
| commit | 1637d68e469fb345eb865a80f09c4bcaa3a01c90 (patch) | |
| tree | 04eb8cf23f96d7cceb6f0fb8715b449ed98458df /Library | |
| parent | 4b3ddb9d977f46d73333569abd50bc4ea03ad266 (diff) | |
| download | homebrew-1637d68e469fb345eb865a80f09c4bcaa3a01c90.tar.bz2 | |
bagit: move conf out of bin
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bagit.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Formula/bagit.rb b/Library/Formula/bagit.rb index e7cd37d6d..eee96f6bb 100644 --- a/Library/Formula/bagit.rb +++ b/Library/Formula/bagit.rb @@ -9,10 +9,17 @@ class Bagit < Formula def install prefix.install %w{conf logs} + libexec.install Dir['lib/*'] - inreplace "bin/bag", "$APP_HOME/lib", "$APP_HOME/libexec" + + # Point to libexec, and move conf file + inreplace "bin/bag" do |s| + s.gsub! "$APP_HOME/lib", "$APP_HOME/libexec" + s.gsub! "/bin/$APP_NAME.classworlds.conf", "/conf/$APP_NAME.classworlds.conf" + end inreplace "bin/bag.classworlds.conf", "${app.home}/lib", "${app.home}/libexec" - rm "bin/bag.bat" - bin.install Dir['bin/*'] + + bin.install 'bin/bag' + (prefix+'conf').install 'bin/bag.classworlds.conf' end end |
