#!/bin/bash1#2# To execute this script, use "sage -sh"3#4#5# To upload updated apidoc to leopardi@SourceForge (2017), use:6# rsync -avz --delete doc/_build/html/ [email protected]:/home/project-web/boolean-cayley-graphs/htdocs/7#8source ./bcg_version.sh910# Delete existing doc/*.rst files11rm -f doc/boolean_cayley_graphs*.rst1213# Create doc/references.rst from boolean_cayley_graphs/references.py14sage<<EOF15from boolean_cayley_graphs.references import print_sage_references_index_rst16ref_file = open("doc/references.rst","w")17print_sage_references_index_rst(file=ref_file)18quit19EOF20pushd doc2122# Use sphinx-apidoc to re-create the documentation from the Python files in ../boolean_cayley_graphs23sphinx-apidoc -e -E -H "Boolean-Cayley-graphs" -A "Paul Leopardi" \24-V ${BCG_VERSION} -R ${BCG_RELEASE} \25-t doc/_templates \26-o . ../boolean_cayley_graphs27make html28popd293031