summaryrefslogtreecommitdiff
path: root/support/vim/install.sh
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-02-13 00:20:34 +0000
committerMike Buland <eichlan@xagasoft.com>2008-02-13 00:20:34 +0000
commitc9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6 (patch)
tree9eb0ed622835b0e59cc156a08de9313a2c71d0a9 /support/vim/install.sh
parent5093edfb74b24c5782591af0d85134c295c6b0e6 (diff)
downloadlibbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.gz
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.bz2
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.tar.xz
libbu++-c9925dd2bc26ad9b7f1395a8c1ddfb2786276ae6.zip
Added the support tree and the new taf vim hilighter.
Diffstat (limited to 'support/vim/install.sh')
-rwxr-xr-xsupport/vim/install.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/support/vim/install.sh b/support/vim/install.sh
new file mode 100755
index 0000000..9e05384
--- /dev/null
+++ b/support/vim/install.sh
@@ -0,0 +1,22 @@
1#!/bin/bash
2
3for type in {ftdetect,ftplugin,syntax}/taf.vim; do
4 if [[ ! -e $type ]]; then
5 echo "You don't seem to be in the right directory."
6 echo "Run this from libbu++/support/vim"
7 exit
8 fi
9done
10
11if [[ $(whoami) != "root" ]]; then
12 echo You should probably run this as root...
13 exit
14fi
15
16for type in ftdetect ftplugin syntax; do
17 for dest in /usr/share/vim/vim*; do
18 if [[ ! -d $dest/$type ]]; then mkdir -v $dest/$type; fi
19 if [[ -e $dest/$type/taf.vim ]]; then rm -v $dest/$type/taf.vim; fi
20 cp -v $type/taf.vim $dest/$type
21 done
22done