aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-06-08 15:59:31 +0100
committerMax Howell2009-06-08 15:59:31 +0100
commit5c0a7e56beb5482143d8199eec883cd7750b49dc (patch)
treeea87e5bcc62e0fe3f3aecaaa078f8b64539a313f
parent25c2f54ccfbb6d0cc7e12d7b02fb79cab2b29a1e (diff)
downloadbrew-5c0a7e56beb5482143d8199eec883cd7750b49dc.tar.bz2
--interactive mode during install
Starts a bash prompt in the uncompressed build directory
-rwxr-xr-xbin/brew11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/brew b/bin/brew
index a2184eec0..7fa034164 100755
--- a/bin/brew
+++ b/bin/brew
@@ -216,9 +216,14 @@ begin
raise "#{o.prefix} already exists!" if o.prefix.exist?
o.prefix.mkpath
o.brew do
- o.install
- ['README','ChangeLog','COPYING','AUTHORS'].each do |file|
- FileUtils.cp file, o.prefix if File.file? file
+ if ARGV.include? '--interactive'
+ ohai "Entering interactive mode, type `exit' to return to this shell"
+ exec "bash"
+ else
+ o.install
+ ['README','ChangeLog','COPYING','COPYRIGHT','AUTHORS'].each do |file|
+ FileUtils.cp file, o.prefix if File.file? file
+ end
end
end
ohai 'Finishing up'