mirror of
https://github.com/python/cpython.git
synced 2024-11-28 16:45:42 +01:00
3f4e717c31
site. These now seem (slightly) more reliable, and easier to work with since update-docs.sh no longer needs to be installed ahead of time on my account at SF.
22 lines
566 B
Bash
Executable File
22 lines
566 B
Bash
Executable File
#! /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/python-docs-update.tar.bz2
|
|
|
|
cd /home/groups/python/htdocs
|
|
rm -rf devel-docs || exit $?
|
|
mkdir devel-docs || exit $?
|
|
cd devel-docs || exit $?
|
|
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
|
|
rm "$UPDATES" || exit $?
|