diff options
author | John Guidry <lowdowndirtyrottenscoundrel@gmail.com> | 2015-07-10 08:19:38 -0500 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-07-18 23:04:34 +0200 |
commit | f977779693518c748d87fb5babd98f6ef411837c (patch) | |
tree | d92d9a0bf0aa4c06628bcb437c9785ed2a06ab08 /build | |
parent | 4033ac02d0a0b4abb2f1e373529ead6eca4290ae (diff) | |
download | vim-polyglot-f977779693518c748d87fb5babd98f6ef411837c.tar.gz vim-polyglot-f977779693518c748d87fb5babd98f6ef411837c.zip |
Allow disabling individual language packs
Diffstat (limited to 'build')
-rwxr-xr-x | build | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -42,7 +42,7 @@ extract() { subdirs="$subdirs, $base" fi - copy_dir "${dir}${subtree}" "$subdir" + copy_dir "${dir}${subtree}" "$subdir" "$name" fi done @@ -67,7 +67,9 @@ copy_dir() { file_path="$(dirname "${file##$1/}")" mkdir -p "$file_path" touch "$file_path/$(basename "$file")" - cat $file >> $file_path/$(basename "$file") + + # Use comma instead of / to handle cases like c/c++ + sed -e "s,%%PACK%%,$3," -e "/%%CONTENT%%/{r $file" -e "d;}" plugin_guard.vim.template >> $file_path/$(basename "$file") done } |