Merge pull request #9330 from clemty/buildtool
make: don't assume luac is installed
This commit is contained in:
10
make.ps1
10
make.ps1
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user