summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-08-24 10:29:39 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-08-24 10:29:39 +0200
commitd1bfe50419e0e12aaf77b68de0a75bfb3ef9c299 (patch)
tree88addc18a84c49480327b81a142f50067d40973a /scripts/build
parent22e8e01c1e7bba0e1aa54255dad21dbb8496dd7a (diff)
downloadvim-polyglot-d1bfe50419e0e12aaf77b68de0a75bfb3ef9c299.tar.gz
vim-polyglot-d1bfe50419e0e12aaf77b68de0a75bfb3ef9c299.zip
Ignore compiler for javascript, fixes #521
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build13
1 files changed, 8 insertions, 5 deletions
diff --git a/scripts/build b/scripts/build
index e8cafd51..a3aeb604 100755
--- a/scripts/build
+++ b/scripts/build
@@ -158,7 +158,10 @@ def extract
repo, branch, path = parse_remote(package["remote"])
dir = "tmp/" + repo.split('/')[1]
subdirs = []
- for subdir in DIRS.fetch(package.fetch("dirs", "default").to_sym)
+ dirs = DIRS.fetch(package.fetch("dirs", "default").to_sym)
+ dirs -= package.fetch("ignored_dirs", [])
+ dirs |= package.fetch("extra_dirs", [])
+ for subdir in dirs
subtree = "#{dir}/#{path ? path + "/" : ""}"
subpath = "#{subtree}#{subdir}"
if FileTest.directory?(subpath)
@@ -307,8 +310,8 @@ def generate_ftdetect
File.write('ftdetect/polyglot.vim', output)
end
-# download
-# extract
+download
+extract
generate_ftdetect
-# puts(" Bye! Have a wonderful time!")
-# FileUtils.rm_rf("tmp")
+puts(" Bye! Have a wonderful time!")
+FileUtils.rm_rf("tmp")