2000-10-19 02:54:51 -03:00
|
|
|
#! /bin/sh
|
|
|
|
|
2001-03-02 17:05:58 -04:00
|
|
|
# Script which installs a development snapshot of the documentation
|
|
|
|
# into the "Python @ SourceForge" website.
|
2000-10-19 02:54:51 -03:00
|
|
|
#
|
2001-03-02 17:05:58 -04:00
|
|
|
# The push-docs.sh script pushes this to the SourceForge when needed
|
|
|
|
# and removes it when done.
|
2000-10-19 02:54:51 -03:00
|
|
|
|
|
|
|
if [ -z "$HOME" ] ; then
|
|
|
|
HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
|
|
|
|
export HOME
|
|
|
|
fi
|
|
|
|
|
2001-03-02 17:05:58 -04:00
|
|
|
UPDATES=$HOME/tmp/python-docs-update.tar.bz2
|
2000-10-19 02:54:51 -03:00
|
|
|
|
2001-03-02 17:05:58 -04:00
|
|
|
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 $?
|