blob: 19a1bd5a816caaa0a12652faeb03ce6f3f2e82db (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 | class GitFixup < Formula
  homepage "https://github.com/keis/git-fixup"
  url "https://github.com/keis/git-fixup/archive/v1.0.1.tar.gz"
  sha1 "0c2f2dd1f6543e537291c0f9e0e06905725b0ccc"
  head "https://github.com/keis/git-fixup.git", :branch => "master"
  bottle do
    cellar :any
    sha1 "51111ec8f5f517ea73a5c465dd5ce1b066bbc1f0" => :yosemite
    sha1 "3d018cad30af595c34cb2a9eaa5457d6665abf09" => :mavericks
    sha1 "324a7f422f26e2a84cb587b2005a0da36c3d08f7" => :mountain_lion
  end
  def install
    system "make", "PREFIX=#{prefix}", "install"
    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
 |