aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-06-13 23:01:20 -0700
committerAdam Vandenberg2012-06-13 23:01:41 -0700
commit0e6cbe5fb97a8d576d7998d39fbb6bc3e16eb10e (patch)
tree4fc9a5831a97ebb8d3b6fc2835a14f10b4f13157 /Library
parent499251195467b486ce36c4b0a0c4bd6010859013 (diff)
downloadhomebrew-0e6cbe5fb97a8d576d7998d39fbb6bc3e16eb10e.tar.bz2
Allow --get for non-interactive builds.
This is useful for doing a --debug build, as the git repo will pick up any changes that have been made up to that point in the build process. --git is still most useful in conjunction with --interactive, though.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 9ba49ba3f..a818cc556 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -75,14 +75,16 @@ def install f
end
f.brew do
+ if ARGV.flag? '--git'
+ system "git init"
+ system "git add -A"
+ end
if ARGV.flag? '--interactive'
ohai "Entering interactive mode"
puts "Type `exit' to return and finalize the installation"
puts "Install to this prefix: #{f.prefix}"
if ARGV.flag? '--git'
- system "git init"
- system "git add -A"
puts "This directory is now a git repo. Make your changes and then use:"
puts " git diff | pbcopy"
puts "to copy the diff to the clipboard."