diff options
| author | Bart Leusink | 2012-02-24 10:21:43 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-25 22:52:57 -0800 |
| commit | 112e1557385a5ee33118aff22e3365fc3f795b67 (patch) | |
| tree | d81dbe1d56b0bd9226d070058508ba1f4d4b6304 /Library/Formula/go.rb | |
| parent | f517df99f2c4a107631e27e7b32add736e4bc7c4 (diff) | |
| download | homebrew-112e1557385a5ee33118aff22e3365fc3f795b67.tar.bz2 | |
go: fix-up HEAD install
Diffstat (limited to 'Library/Formula/go.rb')
| -rw-r--r-- | Library/Formula/go.rb | 6 |
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 |
