mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Helper scripts used in published the "development" snapshots of the
Python documentation.
This commit is contained in:
parent
63568aa9bb
commit
692565c9e9
2 changed files with 43 additions and 0 deletions
27
Doc/tools/update-docs.sh
Executable file
27
Doc/tools/update-docs.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Script which determines if a new development snapshot of the
|
||||
# documentation is available, and unpacks it into the "Python @
|
||||
# SourceForge" website.
|
||||
#
|
||||
# A copy of this script is run periodically via cron.
|
||||
|
||||
if [ -z "$HOME" ] ; then
|
||||
HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
|
||||
export HOME
|
||||
fi
|
||||
|
||||
UPDATES=/home/users/fdrake/python-docs-update.tar.bz2
|
||||
|
||||
if [ -f "$UPDATES" ] ; then
|
||||
cd /home/groups/python/htdocs
|
||||
rm -rf devel-docs || exit $?
|
||||
mkdir devel-docs || exit $?
|
||||
cd devel-docs || exit $?
|
||||
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
|
||||
rm "$UPDATES" || exit $?
|
||||
Mail -s '[online doc updates]' fdrake@acm.org <<EOF
|
||||
Development version of documentation updated:
|
||||
http://python.sourceforge.net/devel-docs/
|
||||
EOF
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue