git-multipush: use new dsl

This commit is contained in:
Adam Vandenberg 2012-08-27 21:14:43 -07:00
parent 7a4190909f
commit 1d15492232

View file

@ -7,10 +7,10 @@ class GitMultipush < Formula
head 'https://github.com/gavinbeatty/git-multipush.git', :revision => 'HEAD'
depends_on 'asciidoc' => :build if ARGV.build_head?
depends_on 'asciidoc' => :build if build.head?
def install
if ARGV.build_head?
if build.head?
ENV['GIT_DIR'] = cached_download/'.git'
inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
system "make"