summaryrefslogtreecommitdiffstats
path: root/abs/core/vi/vi.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2010-11-05 15:55:15 (GMT)
committerJames Meyer <james.meyer@operamail.com>2010-11-05 15:55:15 (GMT)
commit19fbfa9bb5a620d7e1b13a5977b5ea66ef3484da (patch)
treed7d356d6305d741e10bf0f3456442f5d331d87e0 /abs/core/vi/vi.install
parent14513c73d75016aadb7217d3d7a23aa60406a92f (diff)
downloadlinhes_pkgbuild-19fbfa9bb5a620d7e1b13a5977b5ea66ef3484da.zip
linhes_pkgbuild-19fbfa9bb5a620d7e1b13a5977b5ea66ef3484da.tar.gz
linhes_pkgbuild-19fbfa9bb5a620d7e1b13a5977b5ea66ef3484da.tar.bz2
vi: replace vi with ex or true vi
ref #647
Diffstat (limited to 'abs/core/vi/vi.install')
-rw-r--r--abs/core/vi/vi.install37
1 files changed, 0 insertions, 37 deletions
diff --git a/abs/core/vi/vi.install b/abs/core/vi/vi.install
deleted file mode 100644
index ebb73c0..0000000
--- a/abs/core/vi/vi.install
+++ /dev/null
@@ -1,37 +0,0 @@
-post_install() {
- # if we have vim installed create view/rview symlinks to vim
- if [ ! -f usr/bin/vim ] ; then
- cd usr/bin
- ln -s vi view
- ln -s vi rview
- cd ${OLDPWD}
- echo "Create vi related symlinks..."
- fi
- echo -n "Updating vi help tags..."
- usr/bin/vi --noplugins -u NONE -U NONE \
- --cmd ":helptags usr/share/vim/doc" --cmd ":q" > /dev/null 2>&1
- echo "done."
-}
-
-pre_remove() {
- # if vi is a binary instead of a symlink we have an intact gvim installation
- # with a different binary/symlink structure
- # we recover what pacmans database knows about Vim
- if [ ! -f usr/bin/vim ] ; then
- rm -f usr/bin/view usr/bin/rview
- echo "Remove vi related symlinks ..."
- fi
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_upgrade() {
- pre_remove $2
-}
-
-
-op=$1
-shift
-[ "$(type -t "$op")" = "function" ] && $op "$@"