summaryrefslogtreecommitdiff
path: root/contrib/update-tos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/update-tos.sh')
-rwxr-xr-xcontrib/update-tos.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/update-tos.sh b/contrib/update-tos.sh
index 47d3af7..26d65ed 100755
--- a/contrib/update-tos.sh
+++ b/contrib/update-tos.sh
@@ -22,7 +22,16 @@ 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 ..