blob: 1a28cb484714861ab23cf9f73852c548a43c30b5 [file] [log] [blame]
Fred Drake692565c2000-10-19 05:54:51 +00001#! /bin/sh
2
3# Script to push docs from my development area to SourceForge, where the
4# update-docs.sh script unpacks them into their final destination.
5
Fred Drake3f4e7172001-03-02 21:05:58 +00006TARGET=python.sourceforge.net:/home/users/fdrake/tmp
Fred Drake827bb9f2000-11-30 07:38:59 +00007
Fred Drake3f4e7172001-03-02 21:05:58 +00008ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
9
10
11set -x
12
13EXPLANATION=''
14
15if [ "$1" = '-m' ] ; then
16 EXPLANATION="$2"
17 shift 2
18elif [ "$1" ] ; then
19 EXPLANATION="`cat $1`"
20 shift 1
Fred Drake827bb9f2000-11-30 07:38:59 +000021fi
22
Fred Drake692565c2000-10-19 05:54:51 +000023START="`pwd`"
24MYDIR="`dirname $0`"
25cd "$MYDIR"
26MYDIR="`pwd`"
Fred Drake692565c2000-10-19 05:54:51 +000027
Fred Drake7ceab732000-10-24 19:59:55 +000028cd ..
Fred Drake3f4e7172001-03-02 21:05:58 +000029
30# now in .../Doc/
31make --no-print-directory || exit $?
32make --no-print-directory bziphtml || exit $?
Fred Drake692565c2000-10-19 05:54:51 +000033RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
Fred Drake3f4e7172001-03-02 21:05:58 +000034scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2 || exit $?
35scp tools/update-docs.sh $TARGET/update-docs.sh || exit $?
36ssh python.sourceforge.net 'tmp/update-docs.sh && rm tmp/update-docs.sh' || exit $?
37
38Mail -s '[development doc updates]' $ADDRESSES <<EOF
39The development version of the documentation has been updated:
40
41 http://python.sourceforge.net/devel-docs/
42
43$EXPLANATION
44EOF
45exit $?