Created
November 8, 2012 15:40
-
-
Save marco-arnold/4039552 to your computer and use it in GitHub Desktop.
Homebrew git-flow formula AVH Edition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class GitFlowAvh < Formula | |
| homepage 'https://github.com/petervanderdoes/gitflow' | |
| url 'https://github.com/petervanderdoes/gitflow.git', :tag => '1.2.1' | |
| version '1.2.1' | |
| head 'https://github.com/petervanderdoes/gitflow.git', :branch => 'develop' | |
| depends_on 'gnu-getopt' | |
| def patches | |
| DATA | |
| end | |
| def install | |
| system "make", "prefix=#{prefix}", "install" | |
| end | |
| end | |
| # This patch makes sure GNUtools are used on OSX. | |
| # gnu-getopt is keg-only hence the backtick expansion. | |
| # These aliases only exist for the duration of git-flow, | |
| # inside the git-flow shells. Normal operation of bash is | |
| # unaffected - getopt will still find the version supplied | |
| # by OSX in other shells, for example. | |
| __END__ | |
| diff --git a/git-flow b/git-flow | |
| index e5a2705..5916aae 100755 | |
| --- a/git-flow | |
| +++ b/git-flow | |
| @@ -40,6 +40,9 @@ | |
| # Set this to workaround expr problems in shFlags on FreeBSD | |
| if uname -s | egrep -iq 'bsd'; then export EXPR_COMPAT=1; fi | |
| +shopt -s expand_aliases | |
| +alias getopt='`brew --prefix gnu-getopt`/bin/getopt' | |
| + | |
| # enable debug mode | |
| if [ "$DEBUG" = "yes" ]; then | |
| set -x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment