Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: cadb4c842b99e01fb0d1ab31d5c32e3e94d643db authored by cvs2svn on 15 January 2002, 22:34:58 UTC
This commit was manufactured by cvs2svn to create tag 'r212'.
Tip revision: cadb4c8
update-docs.sh
#! /bin/sh

# Script which installs a development snapshot of the documentation
# into the "Python @ SourceForge" website.
#
# The push-docs.sh script pushes this to the SourceForge when needed
# and removes it when done.

if [ -z "$HOME" ] ; then
    HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
    export HOME
fi

DOCTYPE="$1"
UPDATES="$HOME/tmp/$2"

TMPDIR="$$-docs"

cd /home/groups/p/py/python/htdocs || exit $?
mkdir $TMPDIR || exit $?
cd $TMPDIR || exit $?
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
cd .. || exit $?

if [ -d $DOCTYPE-docs ] ; then
    mv $DOCTYPE-docs $DOCTYPE-temp
fi
mv $TMPDIR $DOCTYPE-docs
rm -rf $DOCTYPE-temp || exit $?
rm "$UPDATES" || exit $?
back to top