Merge pull request #8415 from deniz1a/make-utility-check
Adds checks for OpenRA.Utility.exe in make.cmd.
This commit is contained in:
100
make.ps1
100
make.ps1
@@ -18,6 +18,11 @@ function FindMSBuild
|
|||||||
return $null
|
return $null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function UtilityNotFound
|
||||||
|
{
|
||||||
|
echo "OpenRA.Utility.exe could not be found. Build the project first using the `"all`" command."
|
||||||
|
}
|
||||||
|
|
||||||
if ($args.Length -eq 0)
|
if ($args.Length -eq 0)
|
||||||
{
|
{
|
||||||
echo "Command list:"
|
echo "Command list:"
|
||||||
@@ -74,7 +79,7 @@ elseif ($command -eq "clean")
|
|||||||
rm *.dll
|
rm *.dll
|
||||||
rm *.config
|
rm *.config
|
||||||
rm mods/*/*.dll
|
rm mods/*/*.dll
|
||||||
if (Test-Path -Path thirdparty/download/)
|
if (Test-Path thirdparty/download/)
|
||||||
{
|
{
|
||||||
rmdir thirdparty/download -Recurse -Force
|
rmdir thirdparty/download -Recurse -Force
|
||||||
}
|
}
|
||||||
@@ -130,48 +135,69 @@ elseif ($command -eq "dependencies")
|
|||||||
}
|
}
|
||||||
elseif ($command -eq "test")
|
elseif ($command -eq "test")
|
||||||
{
|
{
|
||||||
echo "Testing mods..."
|
if (Test-Path OpenRA.Utility.exe)
|
||||||
echo "Testing Red Alert mod MiniYAML..."
|
{
|
||||||
./OpenRA.Utility.exe ra --check-yaml
|
echo "Testing mods..."
|
||||||
echo "Testing Tiberian Dawn mod MiniYAML..."
|
echo "Testing Red Alert mod MiniYAML..."
|
||||||
./OpenRA.Utility.exe cnc --check-yaml
|
./OpenRA.Utility.exe ra --check-yaml
|
||||||
echo "Testing Dune 2000 mod MiniYAML..."
|
echo "Testing Tiberian Dawn mod MiniYAML..."
|
||||||
./OpenRA.Utility.exe d2k --check-yaml
|
./OpenRA.Utility.exe cnc --check-yaml
|
||||||
echo "Testing Tiberian Sun mod MiniYAML..."
|
echo "Testing Dune 2000 mod MiniYAML..."
|
||||||
./OpenRA.Utility.exe ts --check-yaml
|
./OpenRA.Utility.exe d2k --check-yaml
|
||||||
|
echo "Testing Tiberian Sun mod MiniYAML..."
|
||||||
|
./OpenRA.Utility.exe ts --check-yaml
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UtilityNotFound
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elseif ($command -eq "check")
|
elseif ($command -eq "check")
|
||||||
{
|
{
|
||||||
echo "Checking for code style violations in OpenRA.Renderer.Null..."
|
if (Test-Path OpenRA.Utility.exe)
|
||||||
./OpenRA.Utility.exe ra --check-code-style OpenRA.Renderer.Null
|
{
|
||||||
echo "Checking for code style violations in OpenRA.GameMonitor..."
|
echo "Checking for code style violations in OpenRA.Renderer.Null..."
|
||||||
./OpenRA.Utility.exe ra --check-code-style OpenRA.GameMonitor
|
./OpenRA.Utility.exe ra --check-code-style OpenRA.Renderer.Null
|
||||||
echo "Checking for code style violations in OpenRA.Game..."
|
echo "Checking for code style violations in OpenRA.GameMonitor..."
|
||||||
./OpenRA.Utility.exe ra --check-code-style OpenRA.Game
|
./OpenRA.Utility.exe ra --check-code-style OpenRA.GameMonitor
|
||||||
echo "Checking for code style violations in OpenRA.Mods.Common..."
|
echo "Checking for code style violations in OpenRA.Game..."
|
||||||
./OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.Common
|
./OpenRA.Utility.exe ra --check-code-style OpenRA.Game
|
||||||
echo "Checking for code style violations in OpenRA.Mods.RA..."
|
echo "Checking for code style violations in OpenRA.Mods.Common..."
|
||||||
./OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA
|
./OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.Common
|
||||||
echo "Checking for code style violations in OpenRA.Mods.Cnc..."
|
echo "Checking for code style violations in OpenRA.Mods.RA..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.Cnc
|
./OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA
|
||||||
echo "Checking for code style violations in OpenRA.Mods.D2k..."
|
echo "Checking for code style violations in OpenRA.Mods.Cnc..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.D2k
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.Cnc
|
||||||
echo "Checking for code style violations in OpenRA.Mods.TS..."
|
echo "Checking for code style violations in OpenRA.Mods.D2k..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.TS
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.D2k
|
||||||
echo "Checking for code style violations in OpenRA.Editor..."
|
echo "Checking for code style violations in OpenRA.Mods.TS..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Editor
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Mods.TS
|
||||||
echo "Checking for code style violations in OpenRA.Renderer.Sdl2..."
|
echo "Checking for code style violations in OpenRA.Editor..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Renderer.Sdl2
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Editor
|
||||||
echo "Checking for code style violations in OpenRA.Utility..."
|
echo "Checking for code style violations in OpenRA.Renderer.Sdl2..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Renderer.Sdl2
|
||||||
echo "Checking for code style violations in OpenRA.Test..."
|
echo "Checking for code style violations in OpenRA.Utility..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Test
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Utility
|
||||||
|
echo "Checking for code style violations in OpenRA.Test..."
|
||||||
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.Test
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UtilityNotFound
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elseif ($command -eq "docs")
|
elseif ($command -eq "docs")
|
||||||
{
|
{
|
||||||
./make.ps1 version
|
if (Test-Path OpenRA.Utility.exe)
|
||||||
./OpenRA.Utility.exe all --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md
|
{
|
||||||
./OpenRA.Utility.exe ra --lua-docs | Out-File -Encoding "UTF8" Lua-API.md
|
./make.ps1 version
|
||||||
|
./OpenRA.Utility.exe all --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md
|
||||||
|
./OpenRA.Utility.exe ra --lua-docs | Out-File -Encoding "UTF8" Lua-API.md
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UtilityNotFound
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user