From 112e1557385a5ee33118aff22e3365fc3f795b67 Mon Sep 17 00:00:00 2001 From: Bart Leusink Date: Fri, 24 Feb 2012 10:21:43 +0100 Subject: go: fix-up HEAD install --- Library/Formula/go.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3