blob: c227bcf4ccc623e654aad4db9fd7a2592062c4c0 [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001#! /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
6TARGET=python.sourceforge.net:/home/users/fdrake/tmp
7
8ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
9
10EXPLANATION=''
11
12if [ "$1" = '-m' ] ; then
13 EXPLANATION="$2"
14 shift 2
15elif [ "$1" ] ; then
16 EXPLANATION="`cat $1`"
17 shift 1
18fi
19
20START="`pwd`"
21MYDIR="`dirname $0`"
22cd "$MYDIR"
23MYDIR="`pwd`"
24
25cd ..
26
27# now in .../Doc/
28make --no-print-directory || exit $?
29make --no-print-directory bziphtml || exit $?
30RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
31PACKAGE="html-$RELEASE.tar.bz2"
32scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $?
33ssh python.sourceforge.net tmp/update-docs.sh $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
34
35Mail -s '[development doc updates]' $ADDRESSES <<EOF
36The development version of the documentation has been updated:
37
38 http://python.sourceforge.net/devel-docs/
39
40$EXPLANATION
41EOF
42exit $?