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
commit34e51fb16b219cdf04bec342980abdd8d10ed7f5 (patch)
treeabe1bc300fa6ade9ca17908af0b1404887c73e03 /Library
parentec0a6ee2511f6d6b0cb5d5f8b2456ef57880b8da (diff)
downloadbrew-34e51fb16b219cdf04bec342980abdd8d10ed7f5.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."