summaryrefslogtreecommitdiffstats
path: root/gvim/gvim.install
diff options
context:
space:
mode:
Diffstat (limited to 'gvim/gvim.install')
-rw-r--r--gvim/gvim.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/gvim/gvim.install b/gvim/gvim.install
index f49c345..f52c82e 100644
--- a/gvim/gvim.install
+++ b/gvim/gvim.install
@@ -1,4 +1,11 @@
post_install() {
+
+ echo "Create gvim related symlinks..."
+ cd usr/bin
+ rm -f vim
+ ln -sf vim-big vim
+ cd ${OLDPWD}
+
echo "Updating desktop and mime database..."
update-desktop-database -q
echo -n "Updating vim help tags..."
@@ -12,6 +19,18 @@ post_upgrade() {
}
post_remove() {
+ # we recover what pacmans database knows about gvim
+ # is vim installed and well?
+ if [ -f usr/bin/vim-normal ] ; then
+ cd usr/bin
+ rm -f vim
+ ln -sf vim-normal vim
+ cd ${OLDPWD}
+ echo "Recover vim related symlinks ..."
+ else
+ # Should never be the case because gvim depends on vim
+ rm -f usr/bin/vim
+ fi
echo -n "Updating desktop and mime database..."
update-desktop-database
echo "done."