mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Merged revisions 77281 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ................ r77281 | georg.brandl | 2010-01-03 15:30:52 +0100 (So, 03 Jan 2010) | 17 lines Merged revisions 77266,77279 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77266 | kurt.kaiser | 2010-01-03 09:36:45 +0100 (So, 03 Jan 2010) | 6 lines r77152 to Doc/Makefile broke doc build due to (at least some) make binaries running clean prereq after checkout. 1. So, fix the insane make call in build.sh - seems to solve it. 2. Fix a missing redirection. 3. Check in the rsync opts that actually work during upload. ........ r77279 | georg.brandl | 2010-01-03 14:05:39 +0100 (So, 03 Jan 2010) | 1 line Update doc build step. ........ ................
This commit is contained in:
parent
5f579ca3a6
commit
593d0f4670
1 changed files with 5 additions and 21 deletions
|
@ -55,7 +55,7 @@ REMOTE_SYSTEM="neal@dinsdale.python.org"
|
||||||
REMOTE_DIR="/data/ftp.python.org/pub/www.python.org/doc/3.1"
|
REMOTE_DIR="/data/ftp.python.org/pub/www.python.org/doc/3.1"
|
||||||
RESULT_FILE="$DIR/build/index.html"
|
RESULT_FILE="$DIR/build/index.html"
|
||||||
INSTALL_DIR="/tmp/python-test-3.1/local"
|
INSTALL_DIR="/tmp/python-test-3.1/local"
|
||||||
RSYNC_OPTS="-aC -e ssh"
|
RSYNC_OPTS="-C -e ssh -rlogD"
|
||||||
|
|
||||||
# Always run the installed version of Python.
|
# Always run the installed version of Python.
|
||||||
PYTHON=$INSTALL_DIR/bin/python
|
PYTHON=$INSTALL_DIR/bin/python
|
||||||
|
@ -136,7 +136,7 @@ mail_on_failure() {
|
||||||
|
|
||||||
## setup
|
## setup
|
||||||
cd $DIR
|
cd $DIR
|
||||||
make clobber /dev/null 2>&1
|
make clobber > /dev/null 2>&1
|
||||||
cp -p Modules/Setup.dist Modules/Setup
|
cp -p Modules/Setup.dist Modules/Setup
|
||||||
# But maybe there was no Makefile - we are only building docs. Clear build:
|
# But maybe there was no Makefile - we are only building docs. Clear build:
|
||||||
rm -rf build/
|
rm -rf build/
|
||||||
|
@ -259,25 +259,9 @@ fi
|
||||||
cd $DIR/Doc
|
cd $DIR/Doc
|
||||||
F="make-doc.out"
|
F="make-doc.out"
|
||||||
start=`current_time`
|
start=`current_time`
|
||||||
# XXX(nnorwitz): For now, keep the code that checks for a conflicted file until
|
make clean > ../build/$F 2>&1
|
||||||
# after the first release of 2.6a1 or 3.0a1. At that point, it will be clear
|
make checkout html >> ../build/$F 2>&1
|
||||||
# if there will be a similar problem with the new doc system.
|
err=$?
|
||||||
|
|
||||||
# Doc/commontex/boilerplate.tex is expected to always have an outstanding
|
|
||||||
# modification for the date. When a release is cut, a conflict occurs.
|
|
||||||
# This allows us to detect this problem and not try to build the docs
|
|
||||||
# which will definitely fail with a conflict.
|
|
||||||
#CONFLICTED_FILE=commontex/boilerplate.tex
|
|
||||||
#conflict_count=`grep -c "<<<" $CONFLICTED_FILE`
|
|
||||||
conflict_count=0
|
|
||||||
if [ $conflict_count != 0 ]; then
|
|
||||||
echo "Conflict detected in $CONFLICTED_FILE. Doc build skipped." > ../build/$F
|
|
||||||
err=1
|
|
||||||
else
|
|
||||||
make clean > ../build/$F 2>&1
|
|
||||||
make checkout update html >> ../build/$F 2>&1
|
|
||||||
err=$?
|
|
||||||
fi
|
|
||||||
update_status "Making doc" "$F" $start
|
update_status "Making doc" "$F" $start
|
||||||
if [ $err != 0 ]; then
|
if [ $err != 0 ]; then
|
||||||
NUM_FAILURES=1
|
NUM_FAILURES=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue