annotate Doc/tools/update-docs.sh @ 25838:8540887bcec6 2.2

Backport of 2.183: Fix memory leak in add_subclass() found by NealN with valgrind.
author Guido van Rossum <guido@python.org>
date Fri, 18 Oct 2002 13:42:21 +0000
parents c118d095bdde
children 1125d9489dfa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15266
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
1 #! /bin/sh
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
2
16970
723cf5e378e5 Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents: 16605
diff changeset
3 # Script which installs a development snapshot of the documentation
22745
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
4 # into the development website.
15266
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
5 #
22745
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
6 # The push-docs.sh script pushes this to the server when needed
16970
723cf5e378e5 Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents: 16605
diff changeset
7 # and removes it when done.
15266
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
8
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
9 if [ -z "$HOME" ] ; then
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
10 HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
11 export HOME
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
12 fi
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
13
17615
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
14 DOCTYPE="$1"
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
15 UPDATES="$HOME/tmp/$2"
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
16
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
17 TMPDIR="$$-docs"
15266
c94c1b660ddb Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff changeset
18
22745
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
19 cd /ftp/ftp.python.org/pub/www.python.org/dev/doc/ || exit $?
17615
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
20 mkdir $TMPDIR || exit $?
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
21 cd $TMPDIR || exit $?
16970
723cf5e378e5 Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents: 16605
diff changeset
22 (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
17615
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
23 cd .. || exit $?
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
24
22745
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
25 if [ -d $DOCTYPE ] ; then
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
26 mv $DOCTYPE $DOCTYPE-temp
17615
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
27 fi
22745
c118d095bdde Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents: 17728
diff changeset
28 mv $TMPDIR $DOCTYPE
17615
b830df083a9a Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents: 17466
diff changeset
29 rm -rf $DOCTYPE-temp || exit $?
16970
723cf5e378e5 Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents: 16605
diff changeset
30 rm "$UPDATES" || exit $?