diff options
| author | Ilkka Laukkanen | 2014-01-08 09:58:34 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-08 13:23:56 +0000 |
| commit | f2085e4b98833cb4b996d0fb6341ac224950cec5 (patch) | |
| tree | 3eb2e1e6a751b971c277b446fb5a7a62b364f3e1 /Library/Formula | |
| parent | b49775ea8a74ee368767e0d05a6bd8584c60aeae (diff) | |
| download | homebrew-f2085e4b98833cb4b996d0fb6341ac224950cec5.tar.bz2 | |
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 #25729.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/autojump.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/autojump.rb b/Library/Formula/autojump.rb index b68a04b59..0cd2cd92c 100644 --- a/Library/Formula/autojump.rb +++ b/Library/Formula/autojump.rb @@ -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; |
