Commit bb841840 authored by James McCoy's avatar James McCoy

Install alternatives wrapper scripts in /usr/libexec/neovim

The wrapper scripts to invoke nvim correctly for the respective
alternative (e.g., running "nvim -d" for vimdiff) only clutters $PATH
when it's in /usr/bin.  Moving them to /usr/libexec/neovim avoids this
and also silences lintian's binary-without-manpage tag.
Signed-off-by: James McCoy's avatarJames McCoy <jamessan@debian.org>
parent 0cccc2d2
debian/scripts/* usr/bin/
debian/scripts/* usr/libexec/neovim/
debian/tmp/usr/bin/nvim
......@@ -5,13 +5,13 @@ set -e
update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 30 \
--slave /usr/share/man/man1/editor.1.gz editor.1.gz \
/usr/share/man/man1/nvim.1.gz
update-alternatives --install /usr/bin/ex ex /usr/bin/ex.nvim 30
update-alternatives --install /usr/bin/rvim rvim /usr/bin/rvim.nvim 30
update-alternatives --install /usr/bin/rview rview /usr/bin/rview.nvim 30
update-alternatives --install /usr/bin/ex ex /usr/libexec/neovim/ex 30
update-alternatives --install /usr/bin/rvim rvim /usr/libexec/neovim/rvim 30
update-alternatives --install /usr/bin/rview rview /usr/libexec/neovim/rview 30
update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 30
update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 30
update-alternatives --install /usr/bin/view view /usr/bin/view.nvim 30
update-alternatives --install /usr/bin/vimdiff vimdiff /usr/bin/vimdiff.nvim 30
update-alternatives --install /usr/bin/view view /usr/libexec/neovim/view 30
update-alternatives --install /usr/bin/vimdiff vimdiff /usr/libexec/neovim/vimdiff 30
#DEBHELPER#
......
......@@ -5,13 +5,13 @@ set -e
case "$1" in
remove|deconfigure)
update-alternatives --remove editor /usr/bin/nvim
update-alternatives --remove ex /usr/bin/ex.nvim
update-alternatives --remove rvim /usr/bin/rvim.nvim
update-alternatives --remove rview /usr/bin/rview.nvim
update-alternatives --remove ex /usr/libexec/neovim/ex
update-alternatives --remove rvim /usr/libexec/neovim/rvim
update-alternatives --remove rview /usr/libexec/neovim/rview
update-alternatives --remove vi /usr/bin/nvim
update-alternatives --remove vim /usr/bin/nvim
update-alternatives --remove view /usr/bin/view.nvim
update-alternatives --remove vimdiff /usr/bin/vimdiff.nvim
update-alternatives --remove view /usr/libexec/neovim/view
update-alternatives --remove vimdiff /usr/libexec/neovim/vimdiff
;;
upgrade|failed-upgrade)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment