aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/include/premake/scripts/docscheck.lua
blob: bff81750a1b0d6789102677a53f99dc7949fd7f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
-- Validate documentation for Premkake APIs.
---

	local count = 0
	for k,v in pairs(premake.field._loweredList) do
		local docfilepath = "../website/docs/" .. k .. ".md"
		local exists = os.isfile(docfilepath)
		if not exists then
			print("Missing documentation file for: ", k)
			count = count + 1
		end
	end
	os.exit(count)