aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/postinstall.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-09-01 13:56:35 +0100
committerMike McQuaid2013-09-01 13:57:40 +0100
commit626b56f9f6ad913f723b8fef3c5f515b7c4a3817 (patch)
treecf98aee462064cf4f2d78d2326b94f76be5f2eb1 /Library/Homebrew/cmd/postinstall.rb
parent0c5d928cad2cbe719ffd3700b320f82d486ddef1 (diff)
downloadbrew-626b56f9f6ad913f723b8fef3c5f515b7c4a3817.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/postinstall.rb')
-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