2000-10-19 05:54:51 +00:00
|
|
|
#! /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
|
|
|
|
|
2000-11-30 07:38:59 +00:00
|
|
|
UPDATES=$HOME/python-docs-update.tar.bz2
|
|
|
|
INFO=$HOME/python-docs-update.txt
|
2000-10-19 05:54:51 +00:00
|
|
|
|
|
|
|
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 $?
|
2001-02-14 21:26:31 +00:00
|
|
|
if [ -f "$INFO" ] ; then
|
|
|
|
EXPLANATION="`cat $INFO`"
|
|
|
|
else
|
|
|
|
EXPLANATION=''
|
|
|
|
fi
|
2000-10-29 13:21:45 +00:00
|
|
|
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/
|
2000-11-30 07:38:59 +00:00
|
|
|
|
|
|
|
$EXPLANATION
|
2000-10-19 05:54:51 +00:00
|
|
|
EOF
|
2000-11-30 07:38:59 +00:00
|
|
|
rm -f $HOME/python-docs-update.txt
|
2000-10-19 05:54:51 +00:00
|
|
|
fi
|