This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use path.install dsl for hub formula

  • Loading branch information...
josh committed Dec 11, 2009
1 parent 707fc0c commit 2955bc897c3ca60c2bdbb53522df5b346805c5ad
Showing with 3 additions and 5 deletions.
  1. +3 −5 Library/Formula/hub.rb
View
@@ -15,11 +15,9 @@ def install
# 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

0 comments on commit 2955bc8

Please sign in to comment.