aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/go.rb
diff options
context:
space:
mode:
authorBart Leusink2012-02-24 10:21:43 +0100
committerAdam Vandenberg2012-02-25 22:52:57 -0800
commit112e1557385a5ee33118aff22e3365fc3f795b67 (patch)
treed81dbe1d56b0bd9226d070058508ba1f4d4b6304 /Library/Formula/go.rb
parentf517df99f2c4a107631e27e7b32add736e4bc7c4 (diff)
downloadhomebrew-112e1557385a5ee33118aff22e3365fc3f795b67.tar.bz2
go: fix-up HEAD install
Diffstat (limited to 'Library/Formula/go.rb')
-rw-r--r--Library/Formula/go.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index a191b181e..74ea8a295 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -22,7 +22,11 @@ class Go < Formula
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