mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-16 15:33:49 -05:00
Keep only .vim files when building
This commit is contained in:
14
build.sh
14
build.sh
@@ -1,16 +1,20 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
set -E
|
||||
setopt extended_glob
|
||||
|
||||
DIRS="
|
||||
DIRS=(
|
||||
syntax indent ftplugin ftdetect autoload compiler
|
||||
after/syntax after/indent after/ftplugin after/ftdetect
|
||||
"
|
||||
)
|
||||
|
||||
copy_dir() {
|
||||
if [ -d "$1/$2" ]; then
|
||||
mkdir -p "$2"
|
||||
cp -r $1/$2/* $2/
|
||||
for file in $(find "$1/$2" -name '*.vim'); do
|
||||
file_path="$(dirname "${file##$1/}")"
|
||||
mkdir -p "$file_path"
|
||||
cp $file $file_path/
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user