diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 17:01:36 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2013-09-12 17:01:36 +0200 |
commit | 49b050f04240628288ee09b453280c522507477f (patch) | |
tree | 80edd1ec49ec5fa5d28f52458e264daed13179b5 /build.sh | |
parent | 700eeff06989525276be7ff5e05fc59beaf7e9bf (diff) | |
download | vim-polyglot-49b050f04240628288ee09b453280c522507477f.tar.gz vim-polyglot-49b050f04240628288ee09b453280c522507477f.zip |
Keep only .vim files when building
Diffstat (limited to '')
-rwxr-xr-x | build.sh | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 } |