diff options
author | James Meyer <james.meyer@operamail.com> | 2008-11-09 02:04:02 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2008-11-09 02:04:02 (GMT) |
commit | f8fbe0bba89f5f47eb8f9bdc00cc90206a52022f (patch) | |
tree | 7a88ae164e38693d54f860141f11583304e2d20d /abs/extra-testing/vim/vim.install | |
parent | 83ce0340f07948bb4e4ae4b8557984cfc7ee3afc (diff) | |
download | linhes_pkgbuild-f8fbe0bba89f5f47eb8f9bdc00cc90206a52022f.zip linhes_pkgbuild-f8fbe0bba89f5f47eb8f9bdc00cc90206a52022f.tar.gz linhes_pkgbuild-f8fbe0bba89f5f47eb8f9bdc00cc90206a52022f.tar.bz2 |
vim to 7.2
Diffstat (limited to 'abs/extra-testing/vim/vim.install')
-rw-r--r-- | abs/extra-testing/vim/vim.install | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/extra-testing/vim/vim.install b/abs/extra-testing/vim/vim.install new file mode 100644 index 0000000..1d46e19 --- /dev/null +++ b/abs/extra-testing/vim/vim.install @@ -0,0 +1,38 @@ +post_install() { + # if we have an existing gvim installation - relocate binaries and symlinks + if [ -f usr/bin/vim ] ; then + cd usr/bin + rm -f view rview + ln -s vim view + ln -s vim rview + cd ${OLDPWD} + echo "Create vim related symlinks..." + fi + echo -n "Updating vim help tags..." + usr/bin/vim --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..." + fi + cd ${OLDPWD} +} + +post_upgrade() { + post_install $1 +} + +pre_upgrade() { + pre_remove $2 +} + +op=$1 +shift +[ "$(type -t "$op")" = "function" ] && $op "$@" |