aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-09-01 13:56:35 +0100
committerMike McQuaid2013-09-01 13:57:40 +0100
commit456b955c9295cc45e4ed84dd43ed830c58d331b1 (patch)
tree26f8f8493d841164603e74a9ff6e4c9675602373 /Library/Homebrew/cmd
parentf1e4f3ab99bc7cd1041417dcbd42d2de9df3522d (diff)
downloadhomebrew-456b955c9295cc45e4ed84dd43ed830c58d331b1.tar.bz2
brew-postinstall: add new command.
Runs post-install jobs in case they failed or need rerun for any reason.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/postinstall.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/postinstall.rb b/Library/Homebrew/cmd/postinstall.rb
new file mode 100644
index 000000000..db3125dc9
--- /dev/null
+++ b/Library/Homebrew/cmd/postinstall.rb
@@ -0,0 +1,7 @@
+require 'formula_installer'
+
+module Homebrew extend self
+ def postinstall
+ ARGV.formulae.each {|f| f.post_install }
+ end
+end