vim-polyglot/build.sh

47 lines
938 B
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 doc
after/syntax after/indent
"
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' &