2000-10-19 02:54:51 -03:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# Script to push docs from my development area to SourceForge, where the
|
|
|
|
# update-docs.sh script unpacks them into their final destination.
|
|
|
|
|
2001-03-02 17:05:58 -04:00
|
|
|
TARGET=python.sourceforge.net:/home/users/fdrake/tmp
|
2000-11-30 03:38:59 -04:00
|
|
|
|
2001-03-02 17:05:58 -04:00
|
|
|
ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
|
|
|
|
|
|
|
|
EXPLANATION=''
|
|
|
|
|
|
|
|
if [ "$1" = '-m' ] ; then
|
|
|
|
EXPLANATION="$2"
|
|
|
|
shift 2
|
|
|
|
elif [ "$1" ] ; then
|
|
|
|
EXPLANATION="`cat $1`"
|
|
|
|
shift 1
|
2000-11-30 03:38:59 -04:00
|
|
|
fi
|
|
|
|
|
2000-10-19 02:54:51 -03:00
|
|
|
START="`pwd`"
|
|
|
|
MYDIR="`dirname $0`"
|
|
|
|
cd "$MYDIR"
|
|
|
|
MYDIR="`pwd`"
|
|
|
|
|
2000-10-24 16:59:55 -03:00
|
|
|
cd ..
|
2001-03-02 17:05:58 -04:00
|
|
|
|
|
|
|
# now in .../Doc/
|
|
|
|
make --no-print-directory || exit $?
|
|
|
|
make --no-print-directory bziphtml || exit $?
|
2000-10-19 02:54:51 -03:00
|
|
|
RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
|
2001-03-02 17:05:58 -04:00
|
|
|
scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2 || exit $?
|
|
|
|
scp tools/update-docs.sh $TARGET/update-docs.sh || exit $?
|
|
|
|
ssh python.sourceforge.net 'tmp/update-docs.sh && rm tmp/update-docs.sh' || exit $?
|
|
|
|
|
|
|
|
Mail -s '[development doc updates]' $ADDRESSES <<EOF
|
|
|
|
The development version of the documentation has been updated:
|
|
|
|
|
|
|
|
http://python.sourceforge.net/devel-docs/
|
|
|
|
|
|
|
|
$EXPLANATION
|
|
|
|
EOF
|
|
|
|
exit $?
|