summarylogtreecommitdiffstats
path: root/pyclewn2.install
diff options
context:
space:
mode:
authorSimon Désaulniers2015-06-25 16:53:32 -0400
committerSimon Désaulniers2015-06-25 16:53:32 -0400
commit7937f3374c72ce970c21f2d049db50330cedcfc6 (patch)
treec800df04ba91eae19895f041b43f3c19c5674da5 /pyclewn2.install
downloadaur-7937f3374c72ce970c21f2d049db50330cedcfc6.tar.gz
Initial import
Diffstat (limited to 'pyclewn2.install')
-rw-r--r--pyclewn2.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/pyclewn2.install b/pyclewn2.install
new file mode 100644
index 000000000000..868e9d30ea9e
--- /dev/null
+++ b/pyclewn2.install
@@ -0,0 +1,21 @@
+post_install() {
+ update_vim_tags
+}
+
+update_vim_tags() {
+ 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() {
+ update_vim_tags
+}
+
+# vim:tw=80: ft=sh: sw=2: ts=2: