Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: 00833d507b999bfdf858ac8b76d5c5a1fd93ec45 authored by cvs2svn on 13 April 2001, 19:41:28 UTC
This commit was manufactured by cvs2svn to create tag 'r21c1'.
Tip revision: 00833d5
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

UPDATES="$HOME/tmp/$1"

cd /home/groups/python/htdocs || exit $?
rm -rf devel-docs || exit $?
mkdir devel-docs || exit $?
cd devel-docs || exit $?
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
rm "$UPDATES" || exit $?
back to top