summaryrefslogtreecommitdiff
path: root/homebrew/gitsubrepo/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gitsubrepo/.make.sh-auto')
-rw-r--r--homebrew/gitsubrepo/.make.sh-auto8
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/gitsubrepo/.make.sh-auto b/homebrew/gitsubrepo/.make.sh-auto
new file mode 100644
index 000000000..5680dedaa
--- /dev/null
+++ b/homebrew/gitsubrepo/.make.sh-auto
@@ -0,0 +1,8 @@
+pkg:setup
+libexec.mkpath
+make PREFIX=${PKG_TAPF} INSTALL_LIB=#{libexec} DESTDIR=${PKG_DEST} install
+bin.install_symlink libexec/"git-subrepo"
+inreplace "share/zsh-completion/_git-subrepo", /^if [[ -z $GIT_SUBREPO_ROOT ]].*?^fi$/m, ""
+mv "share/completion.bash", "share/git-subrepo"
+bash_completion.install "share/git-subrepo"
+zsh_completion.install "share/zsh-completion/_git-subrepo"