git-town 0.7.3 (new formula)
This commit is contained in:
parent
4dd074cb65
commit
2c8660b974
1 changed files with 40 additions and 0 deletions
40
Formula/git-town.rb
Normal file
40
Formula/git-town.rb
Normal file
|
@ -0,0 +1,40 @@
|
|||
class GitTown < Formula
|
||||
desc "High-level command-line interface for Git"
|
||||
homepage "http://www.git-town.com"
|
||||
url "https://github.com/Originate/git-town/archive/v0.7.3.tar.gz"
|
||||
sha256 "947fd6dac603dcb02467cc2969ef26db1ccdc72312b6b0d70fb8d11179eb09ba"
|
||||
|
||||
depends_on "dialog" => :recommended
|
||||
|
||||
def install
|
||||
# Install the source
|
||||
libexec.install Dir["src/*"]
|
||||
|
||||
# Symlink the executables
|
||||
bin.install_symlink Dir["#{libexec}/git-*"]
|
||||
bin.install_symlink "#{libexec}/helpers"
|
||||
bin.install_symlink "#{libexec}/drivers"
|
||||
|
||||
# Install the man pages
|
||||
man1.install Dir["man/man1/*"]
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
To install the Fish shell autocompletions,
|
||||
run "git town install-fish-autocompletion"
|
||||
in the terminal.
|
||||
|
||||
To install the completions manually, make
|
||||
#{libexec}/autocomplete/git.fish
|
||||
available as ~/.config/fish/completions/git.fish.
|
||||
In a standard setup, this looks like:
|
||||
mkdir -p ~/.config/fish/completions
|
||||
ln -s #{libexec}/autocomplete/git.fish ~/.config/fish/completions/git.fish
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/git-town", "version"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue