mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-11 04:53:51 -05:00
Parallelize build
This commit is contained in:
35
build.sh
35
build.sh
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -E
|
||||||
|
|
||||||
DIRS="
|
DIRS="
|
||||||
syntax indent ftplugin ftdetect autoload compiler doc
|
syntax indent ftplugin ftdetect autoload compiler doc
|
||||||
@@ -8,24 +8,39 @@ DIRS="
|
|||||||
"
|
"
|
||||||
|
|
||||||
copy_dir() {
|
copy_dir() {
|
||||||
if [ -d "tmp/$1" ]; then
|
if [ -d "$1/$2" ]; then
|
||||||
mkdir -p "$1"
|
mkdir -p "$2"
|
||||||
cp -r tmp/$1/* $1/
|
cp -r $1/$2/* $2/
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Fetches syntax files from given Github repo
|
# Fetches syntax files from given Github repo
|
||||||
syntax() {
|
syntax() {
|
||||||
|
dir="tmp/$(echo "$1" | cut -d '/' -f 2)"
|
||||||
echo "$1..."
|
echo "$1..."
|
||||||
rm -rf tmp
|
rm -rf "$dir"
|
||||||
git clone -q --recursive "https://github.com/$1.git" tmp
|
git clone -q --recursive "https://github.com/$1.git" "$dir"
|
||||||
which tree && tree tmp
|
which tree > /dev/null && tree tmp
|
||||||
|
|
||||||
for dir in $DIRS; do
|
for subdir in $DIRS; do
|
||||||
copy_dir "$dir"
|
copy_dir "$dir" "$subdir"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rm -rf tmp
|
||||||
rm -rf $DIRS
|
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' &
|
||||||
|
|||||||
Reference in New Issue
Block a user