mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
- change computation of VERSION to use tools/getversioninfo; this is
more reliable than using the $Revision$ expansion - $RELEASE is no longer needed; we can just use $VERSION now
This commit is contained in:
parent
984920bbad
commit
69db2b967a
1 changed files with 7 additions and 4 deletions
|
|
@ -10,9 +10,13 @@ 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'
|
||||||
|
|
||||||
VERSION=`echo '$Revision$' | sed 's/[$]Revision: \(.*\) [$]/\1/'`
|
TOOLDIR="`dirname $0`"
|
||||||
|
VERSION=`$TOOLDIR/getversioninfo`
|
||||||
|
|
||||||
|
# Set $EXTRA to something non-empty if this is a non-trunk version:
|
||||||
EXTRA=`echo "$VERSION" | sed 's/^[0-9][0-9]*\.[0-9][0-9]*//'`
|
EXTRA=`echo "$VERSION" | sed 's/^[0-9][0-9]*\.[0-9][0-9]*//'`
|
||||||
if [ "$EXTRA" ] ; then
|
|
||||||
|
if echo "$EXTRA" | grep -q '[.]' ; then
|
||||||
DOCLABEL="maintenance"
|
DOCLABEL="maintenance"
|
||||||
DOCTYPE="maint"
|
DOCTYPE="maint"
|
||||||
else
|
else
|
||||||
|
|
@ -68,8 +72,7 @@ cd ..
|
||||||
|
|
||||||
# now in .../Doc/
|
# now in .../Doc/
|
||||||
make --no-print-directory bziphtml || exit $?
|
make --no-print-directory bziphtml || exit $?
|
||||||
RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
|
PACKAGE="html-$VERSION.tar.bz2"
|
||||||
PACKAGE="html-$RELEASE.tar.bz2"
|
|
||||||
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 $?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue