summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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