diff options
| author | Joshua Peek | 2009-12-11 10:26:08 -0600 |
|---|---|---|
| committer | Joshua Peek | 2009-12-11 10:26:08 -0600 |
| commit | 2955bc897c3ca60c2bdbb53522df5b346805c5ad (patch) | |
| tree | 3ed7e30d38f26a328e6d2639f173475be34876c6 /Library | |
| parent | 707fc0c2cc4f849c65b3a9353cb1892522cba099 (diff) | |
| download | homebrew-2955bc897c3ca60c2bdbb53522df5b346805c5ad.tar.bz2 | |
Use path.install dsl for hub formula
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/hub.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/hub.rb b/Library/Formula/hub.rb index 028fa7952..03ead1b11 100644 --- a/Library/Formula/hub.rb +++ b/Library/Formula/hub.rb @@ -15,11 +15,9 @@ class Hub <Formula # standalone task runs tests which fail # system 'rake standalone' system %(ruby -Ilib -rhub -e "Hub::Standalone.save('hub')") - FileUtils.mkdir_p "#{prefix}/bin" - FileUtils.cp 'hub', "#{prefix}/bin/hub" - system 'rake man' - FileUtils.mkdir_p "#{prefix}/share/man/man1" - FileUtils.cp 'man/hub.1', "#{prefix}/share/man/man1" + + bin.install 'hub' + man1.install 'man/hub.1' end end |
