blob: a6054654998afff608d22fb2142ed5bc3e62ed63 [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 Drake827bb9f2000-11-30 07:38:59 +00006TARGET=python.sourceforge.net:/home/users/fdrake
7
8if [ "$1" ] ; then
9 scp "$1" $TARGET/python-docs-update.txt || exit $?
10fi
11
Fred Drake692565c2000-10-19 05:54:51 +000012START="`pwd`"
13MYDIR="`dirname $0`"
14cd "$MYDIR"
15MYDIR="`pwd`"
16HTMLDIR="${HTMLDIR:-html}"
17
18cd "../$HTMLDIR"
19make --no-print-directory || exit $?
Fred Drake7ceab732000-10-24 19:59:55 +000020cd ..
Fred Drake692565c2000-10-19 05:54:51 +000021RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
22make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
Fred Drake827bb9f2000-11-30 07:38:59 +000023scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2