autojump: if building head, install python modules

Install python modules and original autojump script into autojump's own libexec dir and write an exec script for them. This way `autojump` is the only thing that ends up on in `/usr/local/bin`.

Closes Homebrew/homebrew#25729.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Ilkka Laukkanen 2014-01-08 09:58:34 +02:00 committed by Mike McQuaid
parent 75826f22aa
commit 9918aa469b

View file

@ -10,11 +10,14 @@ class Autojump < Formula
def install
inreplace 'bin/autojump.sh', ' /etc/profile.d/', " #{prefix}/etc/"
bin.install 'bin/autojump'
libexec.install 'bin/autojump'
libexec.install 'bin/autojump_argparse.py', 'bin/autojump_data.py', 'bin/autojump_utils.py' if build.head?
man1.install 'docs/autojump.1'
(prefix/'etc').install 'bin/autojump.sh', 'bin/autojump.bash', 'bin/autojump.zsh'
zsh_completion.install 'bin/_j'
(prefix/'etc').install 'bin/autojump.fish' if build.head?
bin.write_exec_script libexec+'autojump'
end
def caveats;