diff options
Diffstat (limited to 'contrib/update-tos.sh')
-rwxr-xr-x | contrib/update-tos.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/contrib/update-tos.sh b/contrib/update-tos.sh index 47d3af778..dcf9e3919 100755 --- a/contrib/update-tos.sh +++ b/contrib/update-tos.sh @@ -14,7 +14,8 @@ cd tos for l in $@ do mkdir -p $l - echo Generating TOS for language $l + echo "Generating TOS for language $l" + cat conf.py.in | sed -e "s/%VERSION%/$VERSION/g" > conf.py # 'f' is for the supported formats, note that the 'make' target # MUST match the file extension. for f in html txt pdf epub xml @@ -22,7 +23,17 @@ do rm -rf _build echo " Generating format $f" make -e SPHINXOPTS="-D language='$l'" $f >>sphinx.log 2>>sphinx.err < /dev/null - mv _build/$f/tos.$f $l/${VERSION}.$f + if test $f = "html" + then + htmlark -o $l/${VERSION}.$f _build/$f/${VERSION}.$f + else + mv _build/$f/${VERSION}.$f $l/${VERSION}.$f + fi + if test $f = "txt" + then + cp $l/${VERSION}.$f $l/${VERSION}.md + fi done done cd .. +echo "Success" |