Mercurial > cpython-lru_cache-weakref
view Doc/tools/push-docs.sh @ 25838:8540887bcec6 2.2
Backport of 2.183:
Fix memory leak in add_subclass() found by NealN with valgrind.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 18 Oct 2002 13:42:21 +0000 |
| parents | a3bf2c97e808 |
| children | fbea70a40291 b6c0f908beb8 53c2ff1d81d1 |
line wrap: on
line source
#! /bin/sh # Script to push docs from my development area to SourceForge, where the # update-docs.sh script unpacks them into their final destination. TARGETHOST=www.python.org TARGETDIR=/usr/home/fdrake/tmp TARGET="$TARGETHOST:$TARGETDIR" ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org' VERSION=`echo '$Revision$' | sed 's/[$]Revision: \(.*\) [$]/\1/'` EXTRA=`echo "$VERSION" | sed 's/^[0-9][0-9]*\.[0-9][0-9]*//'` if [ "$EXTRA" ] ; then DOCLABEL="maintenance" DOCTYPE="maint" else DOCLABEL="development" DOCTYPE="devel" fi EXPLANATION='' ANNOUNCE=true while [ "$#" -gt 0 ] ; do case "$1" in -m) EXPLANATION="$2" shift 2 ;; -q) ANNOUNCE=false shift 1 ;; -t) DOCTYPE="$2" shift 2 ;; -F) EXPLANATION="`cat $2`" shift 2 ;; -*) echo "Unknown option: $1" >&2 exit 2 ;; *) break ;; esac done if [ "$1" ] ; then if [ "$EXPLANATION" ] ; then echo "Explanation may only be given once!" >&2 exit 2 fi EXPLANATION="$1" shift fi START="`pwd`" MYDIR="`dirname $0`" cd "$MYDIR" MYDIR="`pwd`" cd .. # now in .../Doc/ make --no-print-directory bziphtml || exit $? RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'` PACKAGE="html-$RELEASE.tar.bz2" scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $? ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $? if $ANNOUNCE ; then sendmail $ADDRESSES <<EOF To: $ADDRESSES From: "Fred L. Drake" <fdrake@acm.org> Subject: [$DOCLABEL doc updates] X-No-Archive: yes The $DOCLABEL version of the documentation has been updated: http://$TARGETHOST/dev/doc/$DOCTYPE/ $EXPLANATION EOF exit $? fi
