Created
January 16, 2012 19:09
-
-
Save xla/1622419 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class GoWeekly < Formula | |
url "http://go.googlecode.com/hg/", :revision => "weekly" | |
head "http://go.googlecode.com/hg/" | |
version "weekly" | |
homepage "http://golang.org" | |
skip_clean "bin" | |
def install | |
prefix.install %w[src include test doc misc lib favicon.ico AUTHORS] | |
Dir.chdir prefix | |
mkdir %w[pkg bin] | |
File.open('VERSION', 'w') {|f| f.write("weekly") } | |
Dir.chdir "src" do | |
system "./all.bash" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment