summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbuild.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 5a3b6529..3b02b4da 100755
--- a/build.sh
+++ b/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
}