diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 17:39:23 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-04 17:39:23 +0200 |
commit | ae18284e5af128e1fca0b42f284b558dd7dce73d (patch) | |
tree | eb065c770b2f4985f5677829c1550d0f7067acea /build | |
parent | e3024f21fca230b030fb2fe2fde4e768fb8205b3 (diff) | |
download | vim-polyglot-3.10.0.tar.gz vim-polyglot-3.10.0.zip |
Disable jsx when ts or js is disabled, closes #414v3.10.0
Diffstat (limited to 'build')
-rwxr-xr-x | build | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -6,7 +6,7 @@ DIRS="syntax indent compiler autoload ftplugin after/syntax after/indent after/f # shellcheck disable=SC2034 DIRS_BASIC="syntax compiler indent after/syntax after/indent" # shellcheck disable=SC2034 -DIRS_ALL="syntax indent compiler autoload ftplugin after" +DIRS_ALL="syntax indent compiler autoload ftplugin after extras" # shellcheck disable=SC2034 DIRS_SYNTAX="syntax indent after/syntax after/indent" # shellcheck disable=SC2034 @@ -127,7 +127,11 @@ copy_file() { touch "$file_in_dst" # Use comma instead of / to handle cases like c/c++ - sed -e "s,%%PACK%%,${package_name}," -e "/%%CONTENT%%/{r ${file_in_tmp}" -e "d;}" plugin_guard.vim.template >> "$file_in_dst" + if [[ "${package_name}" == "jsx" ]]; then + sed -e "s,%%PACK%%,${package_name}," -e "/%%CONTENT%%/{r ${file_in_tmp}" -e "d;}" plugin_guard_jsx.vim.template >> "$file_in_dst" + else + sed -e "s,%%PACK%%,${package_name}," -e "/%%CONTENT%%/{r ${file_in_tmp}" -e "d;}" plugin_guard.vim.template >> "$file_in_dst" + fi } update_readme() { |