Merge branch 'travis-fix-texts' into develop

develop
lethosor 2015-03-04 17:25:20 -05:00
commit d6c6408950
2 changed files with 9 additions and 3 deletions

@ -4,9 +4,11 @@ env:
-LUA_VERSION=5.2 -LUA_VERSION=5.2
before_install: before_install:
- sudo apt-get install lua$LUA_VERSION - sudo apt-get install lua$LUA_VERSION
- sudo pip install docutils
script: script:
- python travis/pr-check-base.py - python travis/pr-check-base.py
- python travis/lint.py - python travis/lint.py
- python travis/luac.py - python travis/luac.py
- ./fixTexts.sh
notifications: notifications:
email: false email: false

@ -19,12 +19,16 @@ to build these documents."
fi fi
cd `dirname $0` cd `dirname $0`
status=0
function process() { function process() {
if [ "$1" -nt "$2" ]; then if [ "$1" -nt "$2" ]; then
echo -n "Updating $2... " echo -n "Updating $2... "
"$rst2html" --no-generator --no-datestamp "$1" "$2" if "$rst2html" --no-generator --no-datestamp "$1" "$2"; then
echo "Done" echo "Done"
else
status=1
fi
else else
echo "$2 - up to date." echo "$2 - up to date."
fi fi
@ -35,4 +39,4 @@ process Compile.rst Compile.html
process Lua\ API.rst Lua\ API.html process Lua\ API.rst Lua\ API.html
process Contributors.rst Contributors.html process Contributors.rst Contributors.html
process Contributing.rst Contributing.html process Contributing.rst Contributing.html
exit $status