Set version before creating docs

Since the version string gets embedded into the created documentation.
This commit is contained in:
Oliver Brakmann
2015-04-10 00:13:19 +02:00
parent 6a66cea01f
commit 9aa16c95da
2 changed files with 2 additions and 1 deletions

View File

@@ -309,7 +309,7 @@ version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/modchooser/mo
done
# Documentation (d2k depends on all mod libraries)
docs: utility mods
docs: utility mods version
@mono --debug OpenRA.Utility.exe d2k --docs > DOCUMENTATION.md
@mono --debug OpenRA.Utility.exe ra --lua-docs > Lua-API.md

View File

@@ -157,6 +157,7 @@ elseif ($command -eq "check")
}
elseif ($command -eq "docs")
{
./make.ps1 version
./OpenRA.Utility.exe d2k --docs | Out-File -Encoding "UTF8" DOCUMENTATION.md
./OpenRA.Utility.exe ra --lua-docs | Out-File -Encoding "UTF8" Lua-API.md
}