From 0e6cbe5fb97a8d576d7998d39fbb6bc3e16eb10e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 13 Jun 2012 23:01:20 -0700 Subject: 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. --- Library/Homebrew/build.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library') 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." -- cgit v1.2.3