2010-09-13 21:52:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitHg < Formula
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/offbytwo/git-hg.git'
|
2010-09-13 21:52:04 +00:00
|
|
|
homepage 'http://offbytwo.com/git-hg/'
|
|
|
|
|
|
|
|
def install
|
2012-01-23 02:40:29 +00:00
|
|
|
unless `/usr/bin/which hg`.size > 0
|
|
|
|
puts "You may need to install Mercurial before using this software:"
|
|
|
|
puts " brew install mercurial"
|
|
|
|
end
|
|
|
|
|
2010-09-13 21:52:04 +00:00
|
|
|
prefix.install Dir['*']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|