From af83a1b34113df9b417adcd42bd38607dfd563bf Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Fri, 2 May 2014 22:07:53 +1200 Subject: [PATCH] Update lua docs when packaging a new build. --- packaging/update-wiki.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packaging/update-wiki.sh b/packaging/update-wiki.sh index b386c3fb34..f593360a15 100755 --- a/packaging/update-wiki.sh +++ b/packaging/update-wiki.sh @@ -2,7 +2,14 @@ echo "Updating https://github.com/OpenRA/OpenRA/wiki/Traits" rm -rf openra-wiki git clone git@github.com:OpenRA/OpenRA.wiki.git openra-wiki cp -fr ../DOCUMENTATION.md openra-wiki/Traits.md + +pushd .. &> /dev/null +# d2k depends on all mod libraries +mono --debug OpenRA.Utility.exe --lua-docs d2k > packaging/openra-wiki/New-Lua-API.md +popd &> /dev/null + cd openra-wiki git add Traits.md -git commit -m "Update trait documentation" +git add New-Lua-API.md +git commit -m "Update trait and scripting documentation" git push origin master \ No newline at end of file