From: Fred Drake Date: Thu, 10 Jan 2002 23:10:20 +0000 (+0000) Subject: Update to the latest version from the trunk. X-Git-Tag: v2.1.2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a995adfe821d0ce84bb88b7aaba2265df2b50bb8;p=thirdparty%2FPython%2Fcpython.git Update to the latest version from the trunk. --- diff --git a/Doc/tools/push-docs.sh b/Doc/tools/push-docs.sh index ae721c6bad12..11a5f336ea3b 100755 --- a/Doc/tools/push-docs.sh +++ b/Doc/tools/push-docs.sh @@ -18,13 +18,42 @@ else fi EXPLANATION='' +ANNOUNCE=true -if [ "$1" = '-m' ] ; then - EXPLANATION="$2" - shift 2 -elif [ "$1" ] ; then - EXPLANATION="`cat $1`" - shift 1 +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`" @@ -35,18 +64,23 @@ MYDIR="`pwd`" cd .. # now in .../Doc/ -make --no-print-directory || exit $? 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 python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $? -Mail -s "[$DOCLABEL doc updates]" $ADDRESSES < +Subject: [$DOCLABEL doc updates] - http://python.sourceforge.net/$DOCTYPE-docs/ +The $DOCLABEL version of the documentation has been updated: + + http://python.sourceforge.net/$DOCTYPE-docs/ $EXPLANATION EOF -exit $? + exit $? +fi