source: vendor/python/2.5/Doc/tools/update-docs.sh

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 746 bytes
Line 
1#! /bin/sh
2
3# Script which installs a development snapshot of the documentation
4# into the development website.
5#
6# The push-docs.sh script pushes this to the server when needed
7# and removes it when done.
8
9if [ -z "$HOME" ] ; then
10 HOME=`grep "$LOGNAME" /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
11 export HOME
12fi
13
14DOCTYPE="$1"
15UPDATES="$HOME/tmp/$2"
16
17TMPDIR="$$-docs"
18
19cd /ftp/ftp.python.org/pub/www.python.org/dev/doc/ || exit $?
20mkdir $TMPDIR || exit $?
21cd $TMPDIR || exit $?
22(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
23cd .. || exit $?
24
25if [ -d $DOCTYPE ] ; then
26 mv $DOCTYPE $DOCTYPE-temp
27fi
28mv $TMPDIR/Python-Docs-* $DOCTYPE
29rmdir $TMPDIR
30rm -rf $DOCTYPE-temp || exit $?
31mv "$UPDATES" python-docs-$DOCTYPE.tar.bz2 || exit $?
Note: See TracBrowser for help on using the repository browser.