1#!/bin/sh 2 3mkdir -p docs/_static docs/_build 4sphinx-build -E -b html docs/ docs/_build || exit 1 5if [ "$1" = "publish" ] ; then 6 cd docs/ 7 echo "Uploading files..." 8 scp -r _build/* ianb@webwareforpython.org:/home/paste/htdocs/ 9fi 10