summaryrefslogtreecommitdiffstats
path: root/vim/vim.install
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-05-05 14:03:15 +0200
committerFlorian Pritz <f-p@gmx.at>2009-05-05 14:03:15 +0200
commitaed08f01f8e6b0de458181975c14efe8b89c418f (patch)
tree3f73ca7d67c1098486ec780134d93a7888d0af0f /vim/vim.install
parentd0233c8e0b47beedff2c9ece475db86e1a6a9653 (diff)
downloadaur-packages-aed08f01f8e6b0de458181975c14efe8b89c418f.tar.gz
aur-packages-aed08f01f8e6b0de458181975c14efe8b89c418f.tar.xz
forgot to update some time
Diffstat (limited to 'vim/vim.install')
-rw-r--r--vim/vim.install37
1 files changed, 18 insertions, 19 deletions
diff --git a/vim/vim.install b/vim/vim.install
index 1d46e19..0666b3b 100644
--- a/vim/vim.install
+++ b/vim/vim.install
@@ -1,37 +1,36 @@
post_install() {
- # if we have an existing gvim installation - relocate binaries and symlinks
- if [ -f usr/bin/vim ] ; then
+ # if gvim is installed make vim a symlink to vim-big
+ if [ -f usr/bin/vim-big ] ; then
cd usr/bin
- rm -f view rview
- ln -s vim view
- ln -s vim rview
+ rm -f vim
+ ln -sf vim-big vim
cd ${OLDPWD}
- echo "Create vim related symlinks..."
+ echo "Create gvim related symlinks..."
fi
- echo -n "Updating vim help tags..."
- usr/bin/vim --noplugins -u NONE -U NONE \
+ 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() {
- cd usr/bin
- rm -f view rview
- if [ -f usr/bin/vi ] ; then
- ln -s vi view
- ln -s vi rview
- echo "Create vi related symlinks..."
+post_remove() {
+ # By all dependencies in the world, that shall never happen, because
+ # gvim depends on vim ... but then there is always pacman -Rd ...
+
+ # if gvim is installed make vim a symlink to vim-big
+ if [ -f usr/bin/vim-big ] ; then
+ cd usr/bin
+ rm -f vim
+ ln -sf vim-big vim
+ cd ${OLDPWD}
+ echo "Create gvim related symlinks..."
fi
- cd ${OLDPWD}
}
post_upgrade() {
post_install $1
}
-pre_upgrade() {
- pre_remove $2
-}
op=$1
shift