3 # Script which installs a development snapshot of the documentation
4 # into the development website.
6 # The push-docs.sh script pushes this to the server when needed
7 # and removes it when done.
9 if [ -z "$HOME" ] ; then
10 HOME
=`grep "$LOGNAME" /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
15 UPDATES
="$HOME/tmp/$2"
19 cd /ftp
/ftp.python.org
/pub
/www.python.org
/dev
/doc
/ ||
exit $?
20 mkdir
$TMPDIR ||
exit $?
22 (bzip2 -dc "$UPDATES" |
tar xf
-) ||
exit $?
25 if [ -d $DOCTYPE ] ; then
26 mv $DOCTYPE $DOCTYPE-temp
28 mv $TMPDIR/Python-Docs-
* $DOCTYPE
30 rm -rf $DOCTYPE-temp ||
exit $?
31 mv "$UPDATES" python-docs-
$DOCTYPE.
tar.bz2 ||
exit $?