--interactive mode during install
Starts a bash prompt in the uncompressed build directory
This commit is contained in:
parent
25c2f54ccf
commit
5c0a7e56be
11
bin/brew
11
bin/brew
@ -216,9 +216,14 @@ begin
|
|||||||
raise "#{o.prefix} already exists!" if o.prefix.exist?
|
raise "#{o.prefix} already exists!" if o.prefix.exist?
|
||||||
o.prefix.mkpath
|
o.prefix.mkpath
|
||||||
o.brew do
|
o.brew do
|
||||||
o.install
|
if ARGV.include? '--interactive'
|
||||||
['README','ChangeLog','COPYING','AUTHORS'].each do |file|
|
ohai "Entering interactive mode, type `exit' to return to this shell"
|
||||||
FileUtils.cp file, o.prefix if File.file? file
|
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
|
||||||
end
|
end
|
||||||
ohai 'Finishing up'
|
ohai 'Finishing up'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user