summaryrefslogtreecommitdiffstats
path: root/scripts/build
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-16 13:40:50 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-16 13:40:50 +0200
commitcd919c003992d5868b2b6e254ca265f82a45933f (patch)
tree3fd1cab9bd1e2b84370dcea9944b391cb24ca1ad /scripts/build
parent3ac0dd5a8033d3b356a2976e1dcc6ae8006f903b (diff)
downloadvim-polyglot-cd919c003992d5868b2b6e254ca265f82a45933f.tar.gz
vim-polyglot-cd919c003992d5868b2b6e254ca265f82a45933f.zip
Mention filetypes in the readme
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
index c3ffd1dd..40ac7f33 100755
--- a/scripts/build
+++ b/scripts/build
@@ -529,6 +529,13 @@ def extract(packages)
else
output << "- [#{package["name"]}](https://github.com/#{repo})"
end
+
+ if package["filetypes"].size > 1
+ output[-1] << "(#{package["filetypes"].map { |f| f["name"] }.join(", ")[0..-2]} and #{package["filetypes"].last["name"]} filetypes)"
+ elsif package["filetypes"].size > 0
+ output[-1] << "(#{package["filetypes"].first["name"]} filetype)"
+ end
+
progress
end