summaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 58baf01d390ee65a8951c2f6e08e03b7ba73293c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh

set -E

DIRS="
  syntax indent ftplugin ftdetect autoload compiler
  after/syntax after/indent
"

copy_dir() {
  if [ -d "$1/$2" ]; then
    mkdir -p "$2"
    cp -r $1/$2/* $2/
  fi
}

# Fetches syntax files from given Github repo
syntax() {
  dir="tmp/$(echo "$1" | cut -d '/' -f 2)"
  echo "$1..."
  rm -rf "$dir"
  git clone -q --recursive "https://github.com/$1.git" "$dir"
  which tree > /dev/null && tree tmp

  for subdir in $DIRS; do
    copy_dir "$dir" "$subdir"
  done
}

rm -rf tmp
rm -rf $DIRS
mkdir -p tmp

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' &
syntax 'vim-scripts/XSLT-syntax' &
syntax 'vim-scripts/python.vim--Vasiliev' &

wait

rm -rf tmp