Merge pull request #9330 from clemty/buildtool

make: don't assume luac is installed
This commit is contained in:
abcdefg30
2015-09-13 17:47:29 +02:00

View File

@@ -180,6 +180,9 @@ elseif ($command -eq "check")
}
elseif ($command -eq "check-scripts")
{
if ((Get-Command "luac.exe" -ErrorAction SilentlyContinue) -ne $null)
{
echo "Testing Lua scripts..."
foreach ($script in ls "mods/*/maps/*/*.lua")
{
luac -p $script
@@ -188,7 +191,12 @@ elseif ($command -eq "check-scripts")
{
luac -p $script
}
echo "Check successfull!"
echo "Check completed!"
}
else
{
echo "luac.exe could not be found. Please install Lua."
}
}
elseif ($command -eq "docs")
{