blob: 01ebfdf3ad1c859640e6be88887fb4143aac2501 [file] [log] [blame]
Fred Drake692565c2000-10-19 05:54:51 +00001#! /bin/sh
2
3# Script which determines if a new development snapshot of the
4# documentation is available, and unpacks it into the "Python @
5# SourceForge" website.
6#
7# A copy of this script is run periodically via cron.
8
9if [ -z "$HOME" ] ; then
10 HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
11 export HOME
12fi
13
14UPDATES=/home/users/fdrake/python-docs-update.tar.bz2
15
16if [ -f "$UPDATES" ] ; then
17 cd /home/groups/python/htdocs
18 rm -rf devel-docs || exit $?
19 mkdir devel-docs || exit $?
20 cd devel-docs || exit $?
21 (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
22 rm "$UPDATES" || exit $?
Fred Draked34cfcb2000-10-29 13:21:45 +000023 Mail -s '[development doc updates]' \
24 python-dev@python.org doc-sig@python.org \
25 <<EOF
26The development version of the documentation has been updated:
27
28 http://python.sourceforge.net/devel-docs/
Fred Drake692565c2000-10-19 05:54:51 +000029EOF
30fi