vim-polyglot/build.sh

59 lines
1.2 KiB
Bash
Raw Normal View History

2013-09-12 09:50:45 -04:00
#!/bin/sh
2013-09-12 10:12:52 -04:00
set -E
2013-09-12 09:50:45 -04:00
DIRS="
syntax indent ftplugin ftdetect autoload compiler
after/syntax after/indent after/ftplugin after/ftdetect
2013-09-12 09:50:45 -04:00
"
copy_dir() {
2013-09-12 10:12:52 -04:00
if [ -d "$1/$2" ]; then
mkdir -p "$2"
cp -r $1/$2/* $2/
2013-09-12 09:50:45 -04:00
fi
}
# Fetches syntax files from given Github repo
syntax() {
2013-09-12 10:12:52 -04:00
dir="tmp/$(echo "$1" | cut -d '/' -f 2)"
2013-09-12 09:50:45 -04:00
echo "$1..."
2013-09-12 10:12:52 -04:00
rm -rf "$dir"
git clone -q --recursive "https://github.com/$1.git" "$dir"
which tree > /dev/null && tree tmp
2013-09-12 09:50:45 -04:00
2013-09-12 10:12:52 -04:00
for subdir in $DIRS; do
copy_dir "$dir" "$subdir"
2013-09-12 09:50:45 -04:00
done
}
2013-09-12 10:12:52 -04:00
rm -rf tmp
2013-09-12 09:50:45 -04:00
rm -rf $DIRS
2013-09-12 10:12:52 -04:00
mkdir -p tmp
2013-09-12 09:50:45 -04:00
2013-09-12 10:12:52 -04:00
syntax 'vim-ruby/vim-ruby' &
syntax 'kchmck/vim-coffee-script' &
syntax 'tpope/vim-haml' &
syntax 'tpope/vim-bundler' &
syntax 'pangloss/vim-javascript' &
syntax 'leshill/vim-json' &
syntax 'mutewinter/tomdoc.vim' &
syntax 'mutewinter/nginx.vim' &
syntax 'timcharper/textile.vim' &
syntax 'acustodioo/vim-tmux' &
syntax 'groenewege/vim-less' &
syntax 'wavded/vim-stylus' &
syntax 'tpope/vim-cucumber' &
syntax 'jrk/vim-ocaml' &
syntax 'wlangstroth/vim-haskell' &
syntax 'slim-template/vim-slim' &
2013-09-12 10:21:18 -04:00
syntax 'vim-scripts/XSLT-syntax' &
2013-09-12 10:23:36 -04:00
syntax 'vim-scripts/python.vim--Vasiliev' &
2013-09-12 10:25:13 -04:00
syntax 'vim-scripts/octave.vim--' &
2013-09-12 10:26:29 -04:00
syntax 'uggedal/go-vim' &
2013-09-12 10:33:12 -04:00
syntax 'spf13/PIV' &
wait
rm -rf tmp