vim-polyglot/build

95 lines
1.8 KiB
Plaintext
Raw Normal View History

2013-09-13 10:08:00 -04:00
#!/bin/sh
2013-09-12 09:50:45 -04:00
2013-09-12 10:12:52 -04:00
set -E
2013-09-12 09:50:45 -04:00
2013-09-13 10:08:00 -04:00
DIRS="
syntax indent ftplugin ftdetect autoload compiler
after/syntax after/indent after/ftplugin after/ftdetect
2013-09-13 10:08:00 -04:00
"
2013-09-12 09:50:45 -04:00
copy_dir() {
2013-09-12 10:12:52 -04:00
if [ -d "$1/$2" ]; then
2013-09-12 11:01:36 -04:00
for file in $(find "$1/$2" -name '*.vim'); do
file_path="$(dirname "${file##$1/}")"
mkdir -p "$file_path"
cp $file $file_path/
done
2013-09-12 09:50:45 -04:00
fi
}
# Fetches syntax files from given Github repo
download() {
for pack in $1; do
dir="tmp/$(echo "$pack" | cut -d '/' -f 2)"
echo "- [$pack](https://github.com/$pack)"
rm -rf "$dir"
git clone -q --recursive "https://github.com/$pack.git" "$dir" &
done
wait
}
extract() {
for pack in $1; do
dir="tmp/$(echo "$pack" | cut -d '/' -f 2)"
# which tree > /dev/null && tree tmp
for subdir in $DIRS; do
copy_dir "$dir" "$subdir"
done
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
PACKS="
vim-ruby/vim-ruby
kchmck/vim-coffee-script
tpope/vim-haml
tpope/vim-bundler
pangloss/vim-javascript
leshill/vim-json
mutewinter/tomdoc.vim
mutewinter/nginx.vim
timcharper/textile.vim
tpope/vim-markdown
nono/vim-handlebars
acustodioo/vim-tmux
groenewege/vim-less
wavded/vim-stylus
tpope/vim-cucumber
jrk/vim-ocaml
slim-template/vim-slim
vim-scripts/XSLT-syntax
vim-scripts/python.vim--Vasiliev
vim-scripts/octave.vim--
jnwhiteh/vim-golang
spf13/PIV
briancollins/vim-jst
derekwyatt/vim-scala
derekwyatt/vim-sbt
travitch/hasksyn
ajf/puppet-vim
beyondwords/vim-twig
sudar/vim-arduino-syntax
guns/vim-clojure-static
chrisbra/csv.vim
elixir-lang/vim-elixir
jimenezrick/vimerl
tpope/vim-git
skwp/vim-rspec
vim-scripts/vbnet.vim
2013-09-13 11:28:18 -04:00
jcf/vim-latex
2013-09-13 11:30:58 -04:00
othree/html5.vim
ap/vim-css-color
2013-09-13 12:18:09 -04:00
vim-jp/cpp-vim
octol/vim-cpp-enhanced-highlight
"
download "$PACKS"
extract "$PACKS"
rm -rf tmp