1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/regen-docs
2009-11-10 13:00:07 -05:00

16 lines
449 B
Bash
Executable file

#!/bin/sh
CMD="$1"
if [ "$CMD" = "release" ] ; then
python -c 'import setuptools; __file__="setup.py"; execfile(__file__)' register sdist upload
CMD="publish"
fi
mkdir -p docs/_static docs/_build
sphinx-build -E -b html docs/ docs/_build || exit 1
if [ "$CMD" = "publish" ] ; then
cd docs/_build
echo "Uploading files..."
tar czvf - . | ssh flow.openplans.org 'ssh acura.openplans.org "cd /www/pip.openplans.org/htdocs/; tar xzvf -"'
fi