2000-10-19 05:54:51 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2001-03-02 21:05:58 +00:00
|
|
|
# Script which installs a development snapshot of the documentation
|
|
|
|
# into the "Python @ SourceForge" website.
|
2000-10-19 05:54:51 +00:00
|
|
|
#
|
2001-03-02 21:05:58 +00:00
|
|
|
# The push-docs.sh script pushes this to the SourceForge when needed
|
|
|
|
# and removes it when done.
|
2000-10-19 05:54:51 +00:00
|
|
|
|
|
|
|
if [ -z "$HOME" ] ; then
|
|
|
|
HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
|
|
|
|
export HOME
|
|
|
|
fi
|
|
|
|
|
2001-04-22 06:20:31 +00:00
|
|
|
DOCTYPE="$1"
|
|
|
|
UPDATES="$HOME/tmp/$2"
|
|
|
|
|
|
|
|
TMPDIR="$$-docs"
|
2000-10-19 05:54:51 +00:00
|
|
|
|
2001-04-13 05:13:55 +00:00
|
|
|
cd /home/groups/python/htdocs || exit $?
|
2001-04-22 06:20:31 +00:00
|
|
|
mkdir $TMPDIR || exit $?
|
|
|
|
cd $TMPDIR || exit $?
|
2001-03-02 21:05:58 +00:00
|
|
|
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
|
2001-04-22 06:20:31 +00:00
|
|
|
cd .. || exit $?
|
|
|
|
|
|
|
|
if [ -d $DOCTYPE-docs ] ; then
|
|
|
|
mv $DOCTYPE-docs $DOCTYPE-temp
|
|
|
|
fi
|
|
|
|
mv $TMPDIR $DOCTYPE-docs
|
|
|
|
rm -rf $DOCTYPE-temp || exit $?
|
2001-03-02 21:05:58 +00:00
|
|
|
rm "$UPDATES" || exit $?
|