Permalink
Browse files

go: fix-up HEAD install

  • Loading branch information...
1 parent f517df9 commit 112e1557385a5ee33118aff22e3365fc3f795b67 @bartleusink bartleusink committed with adamv Feb 24, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Library/Formula/go.rb
View
6 Library/Formula/go.rb
@@ -22,7 +22,11 @@ def install
prefix.install %w[src include test doc misc lib favicon.ico AUTHORS]
cd prefix do
mkdir %w[pkg bin]
- File.open('VERSION', 'w') {|f| f.write('release.r60.3 9516') }
+
+ # The version check is due to:
+ # http://codereview.appspot.com/5654068
+ version = ARGV.build_head? ? 'default' : 'release.r60.3 9516'
+ File.open('VERSION', 'w') {|f| f.write(version) }
# Tests take a very long time to run. Build only
cd 'src' do

0 comments on commit 112e155

Please sign in to comment.