summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2013-09-12 16:12:52 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2013-09-12 16:12:52 +0200
commitdce12af91b404835938e95de9e6d839d52487ed5 (patch)
tree805700e43166fa7ca4e1fc7ccf7d6bb8bb05f712
parent9ffe4c9968c180f2702276a71e6d9fcc68de96a2 (diff)
downloadvim-polyglot-dce12af91b404835938e95de9e6d839d52487ed5.tar.gz
vim-polyglot-dce12af91b404835938e95de9e6d839d52487ed5.zip
Parallelize build
-rwxr-xr-xbuild.sh35
1 files changed, 25 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index 850e46f1..ca03a028 100755
--- a/build.sh
+++ b/build.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-set -e
+set -E
DIRS="
syntax indent ftplugin ftdetect autoload compiler doc
@@ -8,24 +8,39 @@ DIRS="
"
copy_dir() {
- if [ -d "tmp/$1" ]; then
- mkdir -p "$1"
- cp -r tmp/$1/* $1/
+ 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 tmp
- git clone -q --recursive "https://github.com/$1.git" tmp
- which tree && tree tmp
+ rm -rf "$dir"
+ git clone -q --recursive "https://github.com/$1.git" "$dir"
+ which tree > /dev/null && tree tmp
- for dir in $DIRS; do
- copy_dir "$dir"
+ 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 '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' &