Keep only .vim files when building

This commit is contained in:
Adam Stankiewicz
2013-09-12 17:01:36 +02:00
parent 700eeff069
commit 49b050f042
2 changed files with 9 additions and 83 deletions

View File

@@ -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
}