2000-10-19 05:54:51 +00: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.
|
|
|
|
|
2000-11-30 07:38:59 +00:00
|
|
|
TARGET=python.sourceforge.net:/home/users/fdrake
|
|
|
|
|
|
|
|
if [ "$1" ] ; then
|
|
|
|
scp "$1" $TARGET/python-docs-update.txt || exit $?
|
|
|
|
fi
|
|
|
|
|
2000-10-19 05:54:51 +00:00
|
|
|
START="`pwd`"
|
|
|
|
MYDIR="`dirname $0`"
|
|
|
|
cd "$MYDIR"
|
|
|
|
MYDIR="`pwd`"
|
|
|
|
HTMLDIR="${HTMLDIR:-html}"
|
|
|
|
|
|
|
|
cd "../$HTMLDIR"
|
|
|
|
make --no-print-directory || exit $?
|
2000-10-24 19:59:55 +00:00
|
|
|
cd ..
|
2000-10-19 05:54:51 +00:00
|
|
|
RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
|
|
|
|
make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
|
2000-11-30 07:38:59 +00:00
|
|
|
scp "html-$RELEASE.tar.bz2" $TARGET/python-docs-update.tar.bz2
|