mirror of
https://github.com/python/cpython.git
synced 2024-11-30 05:15:14 +08:00
d34cfcb4c7
Have the mail sent to the python-dev and Doc-SIG lists.
31 lines
843 B
Bash
Executable File
31 lines
843 B
Bash
Executable File
#! /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 '[development doc updates]' \
|
|
python-dev@python.org doc-sig@python.org \
|
|
<<EOF
|
|
The development version of the documentation has been updated:
|
|
|
|
http://python.sourceforge.net/devel-docs/
|
|
EOF
|
|
fi
|