File: regen-docs

package info (click to toggle)
paste 3.0.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,204 kB
  • sloc: python: 18,684; makefile: 17; sh: 7
file content (9 lines) | stat: -rwxr-xr-x 234 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
#!/bin/sh

mkdir -p docs/_static docs/_build
sphinx-build -E -b html docs/ docs/_build || exit 1
if [ "$1" = "publish" ] ; then
  cd docs/
  echo "Uploading files..."
  scp -r _build/* ianb@webwareforpython.org:/home/paste/htdocs/
fi