summarylogtreecommitdiffstats
path: root/vimdoc.install
diff options
context:
space:
mode:
authorMustafa Gonul2018-03-15 17:37:07 +0300
committerMustafa Gonul2018-03-15 17:37:07 +0300
commitc053f46417c7e9948553a9b20a241e64ce917d59 (patch)
tree68064e3cc20d82d4abb2a960b4f07ba2c1944481 /vimdoc.install
downloadaur-c053f46417c7e9948553a9b20a241e64ce917d59.tar.gz
- vim-fixkey-git created
Diffstat (limited to 'vimdoc.install')
-rw-r--r--vimdoc.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/vimdoc.install b/vimdoc.install
new file mode 100644
index 000000000000..e8c968a48d66
--- /dev/null
+++ b/vimdoc.install
@@ -0,0 +1,20 @@
+post_install() {
+ echo -n "Updating vim help tags..."
+ /usr/bin/vim --noplugins -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install
+}
+
+op=$1
+shift
+
+$op $*
+