[neovim] 01/02: Install alternatives for ex, rvim, rview, vi, vim, view, and vimdiff
James McCoy
jamessan at debian.org
Sat Oct 8 19:08:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository neovim.
commit fcf2166ef5591055a529028b1874f2dd0e00aef2
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sun Jul 10 23:21:37 2016 -0700
Install alternatives for ex, rvim, rview, vi, vim, view, and vimdiff
The alternatives for vi and vim just link to nvim. For the remaining
alternatives, provide one-line scripts that exec nvim with the
appropriate options.
Signed-off-by: James McCoy <jamessan at debian.org>
---
debian/neovim.install | 1 +
debian/neovim.postinst | 7 +++++++
debian/neovim.prerm | 7 +++++++
debian/scripts/ex.nvim | 2 ++
debian/scripts/rview.nvim | 2 ++
debian/scripts/rvim.nvim | 2 ++
debian/scripts/view.nvim | 2 ++
debian/scripts/vimdiff.nvim | 2 ++
8 files changed, 25 insertions(+)
diff --git a/debian/neovim.install b/debian/neovim.install
index 3e59bde..b99769c 100644
--- a/debian/neovim.install
+++ b/debian/neovim.install
@@ -1 +1,2 @@
debian/tmp/usr/bin/nvim
+debian/scripts/* usr/bin/
diff --git a/debian/neovim.postinst b/debian/neovim.postinst
index 9c30db0..6fa52ca 100644
--- a/debian/neovim.postinst
+++ b/debian/neovim.postinst
@@ -5,6 +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/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
#DEBHELPER#
diff --git a/debian/neovim.prerm b/debian/neovim.prerm
index 129ead2..de97a09 100644
--- a/debian/neovim.prerm
+++ b/debian/neovim.prerm
@@ -5,6 +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 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
;;
upgrade|failed-upgrade)
diff --git a/debian/scripts/ex.nvim b/debian/scripts/ex.nvim
new file mode 100755
index 0000000..25105ec
--- /dev/null
+++ b/debian/scripts/ex.nvim
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvim -e "$@"
diff --git a/debian/scripts/rview.nvim b/debian/scripts/rview.nvim
new file mode 100755
index 0000000..c142053
--- /dev/null
+++ b/debian/scripts/rview.nvim
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvim -RZ "$@"
diff --git a/debian/scripts/rvim.nvim b/debian/scripts/rvim.nvim
new file mode 100755
index 0000000..7407ec4
--- /dev/null
+++ b/debian/scripts/rvim.nvim
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvim -Z "$@"
diff --git a/debian/scripts/view.nvim b/debian/scripts/view.nvim
new file mode 100755
index 0000000..cfa57a2
--- /dev/null
+++ b/debian/scripts/view.nvim
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvim -R "$@"
diff --git a/debian/scripts/vimdiff.nvim b/debian/scripts/vimdiff.nvim
new file mode 100755
index 0000000..c494dd3
--- /dev/null
+++ b/debian/scripts/vimdiff.nvim
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/nvim -d "$@"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/neovim.git
More information about the pkg-vim-maintainers
mailing list