Skip to content

Instantly share code, notes, and snippets.

@xla
Created January 16, 2012 19:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xla/1622419 to your computer and use it in GitHub Desktop.
Save xla/1622419 to your computer and use it in GitHub Desktop.
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