- add link to the downloadable package in the generated email

- misc. changes
This commit is contained in:
Fred Drake 2004-06-17 18:36:54 +00:00
parent 1ce9e4cfc1
commit 9e1ac2496f
1 changed files with 24 additions and 2 deletions

View File

@ -6,6 +6,8 @@
TARGETHOST=www.python.org TARGETHOST=www.python.org
TARGETDIR=/usr/home/fdrake/tmp TARGETDIR=/usr/home/fdrake/tmp
PKGTYPE="bzip" # must be one of: bzip, tar, zip ("tar" implies gzip)
TARGET="$TARGETHOST:$TARGETDIR" TARGET="$TARGETHOST:$TARGETDIR"
ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org' ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
@ -27,12 +29,17 @@ fi
EXPLANATION='' EXPLANATION=''
ANNOUNCE=true ANNOUNCE=true
# XXX Should use getopt(1) here.
while [ "$#" -gt 0 ] ; do while [ "$#" -gt 0 ] ; do
case "$1" in case "$1" in
-m) -m)
EXPLANATION="$2" EXPLANATION="$2"
shift 2 shift 2
;; ;;
-p)
PKGTYPE="$2"
shift 1
;;
-q) -q)
ANNOUNCE=false ANNOUNCE=false
shift 1 shift 1
@ -68,11 +75,22 @@ MYDIR="`dirname $0`"
cd "$MYDIR" cd "$MYDIR"
MYDIR="`pwd`" MYDIR="`pwd`"
if [ "$PKGTYPE" = bzip ] ; then
PKGEXT=tar.bz2
elif [ "$PKGTYPE" = tar ] ; then
PKGEXT=tgz
elif [ "$PKGTYPE" = zip ] ; then
PKGEXT=zip
else
echo 1>&2 "unsupported package type: $PKGTYPE"
exit 2
fi
cd .. cd ..
# now in .../Doc/ # now in .../Doc/
make --no-print-directory bziphtml || exit $? make --no-print-directory ${PKGTYPE}html || exit $?
PACKAGE="html-$VERSION.tar.bz2" PACKAGE="html-$VERSION.$PKGEXT"
scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $? scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $?
ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $? ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
@ -88,6 +106,10 @@ The $DOCLABEL version of the documentation has been updated:
http://$TARGETHOST/dev/doc/$DOCTYPE/ http://$TARGETHOST/dev/doc/$DOCTYPE/
$EXPLANATION $EXPLANATION
A downloadable package containing the HTML is also available:
http://$TARGETHOST/dev/doc/python-docs-$DOCTYPE.$PKGEXT
EOF EOF
exit $? exit $?
fi fi