mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
Add step to build downloadable docs.
This commit is contained in:
parent
50111c08ac
commit
4cf8ac41ce
1 changed files with 15 additions and 1 deletions
|
@ -50,7 +50,8 @@ FAILURE_MAILTO="python-checkins@python.org"
|
||||||
#FAILURE_CC="optional--uncomment and set to desired address"
|
#FAILURE_CC="optional--uncomment and set to desired address"
|
||||||
|
|
||||||
REMOTE_SYSTEM="neal@dinsdale.python.org"
|
REMOTE_SYSTEM="neal@dinsdale.python.org"
|
||||||
REMOTE_DIR="/data/ftp.python.org/pub/docs.python.org/dev/2.6"
|
REMOTE_DIR="/data/ftp.python.org/pub/www.python.org/doc/current"
|
||||||
|
REMOTE_DIR_DIST="/data/ftp.python.org/pub/python/doc/current"
|
||||||
RESULT_FILE="$DIR/build/index.html"
|
RESULT_FILE="$DIR/build/index.html"
|
||||||
INSTALL_DIR="/tmp/python-test-2.6/local"
|
INSTALL_DIR="/tmp/python-test-2.6/local"
|
||||||
RSYNC_OPTS="-aC -e ssh"
|
RSYNC_OPTS="-aC -e ssh"
|
||||||
|
@ -271,11 +272,24 @@ if [ $err != 0 ]; then
|
||||||
mail_on_failure "doc" ../build/$F
|
mail_on_failure "doc" ../build/$F
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
F="make-doc-dist.out"
|
||||||
|
start=`current_time`
|
||||||
|
if [ $conflict_count == 0 ]; then
|
||||||
|
make dist >& ../build/$F
|
||||||
|
err=$?
|
||||||
|
fi
|
||||||
|
update_status "Making downloadable doc" "$F" $start
|
||||||
|
if [ $err != 0 ]; then
|
||||||
|
NUM_FAILURES=1
|
||||||
|
mail_on_failure "doc dist" ../build/$F
|
||||||
|
fi
|
||||||
|
|
||||||
echo "</ul>" >> $RESULT_FILE
|
echo "</ul>" >> $RESULT_FILE
|
||||||
echo "</body>" >> $RESULT_FILE
|
echo "</body>" >> $RESULT_FILE
|
||||||
echo "</html>" >> $RESULT_FILE
|
echo "</html>" >> $RESULT_FILE
|
||||||
|
|
||||||
## copy results
|
## copy results
|
||||||
rsync $RSYNC_OPTS build/html/* $REMOTE_SYSTEM:$REMOTE_DIR
|
rsync $RSYNC_OPTS build/html/* $REMOTE_SYSTEM:$REMOTE_DIR
|
||||||
|
rsync $RSYNC_OPTS dist/* $REMOTE_SYSTEM:$REMOTE_DIR_DIST
|
||||||
cd ../build
|
cd ../build
|
||||||
rsync $RSYNC_OPTS index.html *.out $REMOTE_SYSTEM:$REMOTE_DIR/results/
|
rsync $RSYNC_OPTS index.html *.out $REMOTE_SYSTEM:$REMOTE_DIR/results/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue