From: Fred Drake Date: Sun, 22 Apr 2001 06:19:29 +0000 (+0000) Subject: Update publish-to-SourceForge scripts to automatically determine if the X-Git-Tag: v2.1.1c1~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9ecb6fd53fc982fc1291ae2681f43c6c7968aa9;p=thirdparty%2FPython%2Fcpython.git Update publish-to-SourceForge scripts to automatically determine if the branch is the head (development) branch or a maintenance brach, and use the appropriate target directory for each. --- diff --git a/Doc/tools/push-docs.sh b/Doc/tools/push-docs.sh index c227bcf4ccc6..27366b3f3656 100755 --- a/Doc/tools/push-docs.sh +++ b/Doc/tools/push-docs.sh @@ -7,6 +7,16 @@ TARGET=python.sourceforge.net:/home/users/fdrake/tmp 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='' if [ "$1" = '-m' ] ; then @@ -30,12 +40,12 @@ 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 $PACKAGE '&&' rm tmp/update-docs.sh || exit $? +ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $? -Mail -s '[development doc updates]' $ADDRESSES <