summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-09-04 17:39:23 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2019-09-04 17:39:23 +0200
commitae18284e5af128e1fca0b42f284b558dd7dce73d (patch)
treeeb065c770b2f4985f5677829c1550d0f7067acea /build
parente3024f21fca230b030fb2fe2fde4e768fb8205b3 (diff)
downloadvim-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-xbuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/build b/build
index 71ff6c31..c416af26 100755
--- a/build
+++ b/build
@@ -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() {