2015-02-25 00:55:10 +00:00
|
|
|
class GitFixup < Formula
|
|
|
|
homepage "https://github.com/keis/git-fixup"
|
2015-02-25 22:30:41 +00:00
|
|
|
url "https://github.com/keis/git-fixup/archive/v1.0.1.tar.gz"
|
|
|
|
sha1 "0c2f2dd1f6543e537291c0f9e0e06905725b0ccc"
|
2015-02-25 00:55:10 +00:00
|
|
|
|
|
|
|
head "https://github.com/keis/git-fixup.git", :branch => "master"
|
|
|
|
|
2015-02-25 18:00:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-01 03:17:15 +00:00
|
|
|
sha1 "51111ec8f5f517ea73a5c465dd5ce1b066bbc1f0" => :yosemite
|
|
|
|
sha1 "3d018cad30af595c34cb2a9eaa5457d6665abf09" => :mavericks
|
|
|
|
sha1 "324a7f422f26e2a84cb587b2005a0da36c3d08f7" => :mountain_lion
|
2015-02-25 18:00:09 +00:00
|
|
|
end
|
|
|
|
|
2015-02-25 00:55:10 +00:00
|
|
|
def install
|
2015-02-25 22:30:41 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2015-02-25 00:55:10 +00:00
|
|
|
zsh_completion.install "completion.zsh" => "_git-fixup"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "git", "init"
|
|
|
|
|
|
|
|
(testpath/"test").write "foo"
|
|
|
|
system "git", "add", "test"
|
|
|
|
system "git", "commit", "--message", "Initial commit"
|
|
|
|
|
|
|
|
(testpath/"test").delete
|
|
|
|
(testpath/"test").write "bar"
|
|
|
|
system "git", "add", "test"
|
|
|
|
system "git", "fixup"
|
|
|
|
end
|
|
|
|
end
|