Mercurial > cpython-lru_cache-weakref
annotate Doc/tools/push-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 | a3bf2c97e808 |
| children | fbea70a40291 b6c0f908beb8 53c2ff1d81d1 |
| 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 |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
3 # Script to push docs from my development area to SourceForge, where the |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
4 # update-docs.sh script unpacks them into their final destination. |
|
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:
20663
diff
changeset
|
6 TARGETHOST=www.python.org |
|
c118d095bdde
Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents:
20663
diff
changeset
|
7 TARGETDIR=/usr/home/fdrake/tmp |
|
c118d095bdde
Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents:
20663
diff
changeset
|
8 |
|
c118d095bdde
Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents:
20663
diff
changeset
|
9 TARGET="$TARGETHOST:$TARGETDIR" |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
10 |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
11 ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org' |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
12 |
|
17615
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
13 VERSION=`echo '$Revision$' | sed 's/[$]Revision: \(.*\) [$]/\1/'` |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
14 EXTRA=`echo "$VERSION" | sed 's/^[0-9][0-9]*\.[0-9][0-9]*//'` |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
15 if [ "$EXTRA" ] ; then |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
16 DOCLABEL="maintenance" |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
17 DOCTYPE="maint" |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
18 else |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
19 DOCLABEL="development" |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
20 DOCTYPE="devel" |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
21 fi |
|
b830df083a9a
Update publish-to-SourceForge scripts to automatically determine if the
Fred Drake <fdrake@acm.org>
parents:
17466
diff
changeset
|
22 |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
23 EXPLANATION='' |
|
19057
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
24 ANNOUNCE=true |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
25 |
|
18087
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
26 while [ "$#" -gt 0 ] ; do |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
27 case "$1" in |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
28 -m) |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
29 EXPLANATION="$2" |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
30 shift 2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
31 ;; |
|
19057
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
32 -q) |
|
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
33 ANNOUNCE=false |
|
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
34 shift 1 |
|
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
35 ;; |
|
18087
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
36 -t) |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
37 DOCTYPE="$2" |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
38 shift 2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
39 ;; |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
40 -F) |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
41 EXPLANATION="`cat $2`" |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
42 shift 2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
43 ;; |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
44 -*) |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
45 echo "Unknown option: $1" >&2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
46 exit 2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
47 ;; |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
48 *) |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
49 break |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
50 ;; |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
51 esac |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
52 done |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
53 if [ "$1" ] ; then |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
54 if [ "$EXPLANATION" ] ; then |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
55 echo "Explanation may only be given once!" >&2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
56 exit 2 |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
57 fi |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
58 EXPLANATION="$1" |
|
6254737cb629
Make the option processing more robust.
Fred Drake <fdrake@acm.org>
parents:
17728
diff
changeset
|
59 shift |
|
15460
d397f66775e8
Adjust to allow an explanation of the changes to be included in the
Fred Drake <fdrake@acm.org>
parents:
15319
diff
changeset
|
60 fi |
|
d397f66775e8
Adjust to allow an explanation of the changes to be included in the
Fred Drake <fdrake@acm.org>
parents:
15319
diff
changeset
|
61 |
|
15266
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
62 START="`pwd`" |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
63 MYDIR="`dirname $0`" |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
64 cd "$MYDIR" |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
65 MYDIR="`pwd`" |
|
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
66 |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
67 cd .. |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
68 |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
69 # now in .../Doc/ |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
70 make --no-print-directory bziphtml || exit $? |
|
15266
c94c1b660ddb
Helper scripts used in published the "development" snapshots of the
Fred Drake <fdrake@acm.org>
parents:
diff
changeset
|
71 RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'` |
|
17466
b84f084b2992
Update the helper scripts that push development docs to SourceForge;
Fred Drake <fdrake@acm.org>
parents:
16979
diff
changeset
|
72 PACKAGE="html-$RELEASE.tar.bz2" |
|
b84f084b2992
Update the helper scripts that push development docs to SourceForge;
Fred Drake <fdrake@acm.org>
parents:
16979
diff
changeset
|
73 scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $? |
|
22745
c118d095bdde
Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents:
20663
diff
changeset
|
74 ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $? |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
75 |
|
19057
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
76 if $ANNOUNCE ; then |
|
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
77 sendmail $ADDRESSES <<EOF |
|
18431
459173237915
Change the way notification mails are sent so people who respond to the
Fred Drake <fdrake@acm.org>
parents:
18087
diff
changeset
|
78 To: $ADDRESSES |
|
459173237915
Change the way notification mails are sent so people who respond to the
Fred Drake <fdrake@acm.org>
parents:
18087
diff
changeset
|
79 From: "Fred L. Drake" <fdrake@acm.org> |
|
459173237915
Change the way notification mails are sent so people who respond to the
Fred Drake <fdrake@acm.org>
parents:
18087
diff
changeset
|
80 Subject: [$DOCLABEL doc updates] |
|
22810
a3bf2c97e808
Mark the notice about the new development version of the docs as not needing
Fred Drake <fdrake@acm.org>
parents:
22745
diff
changeset
|
81 X-No-Archive: yes |
|
18431
459173237915
Change the way notification mails are sent so people who respond to the
Fred Drake <fdrake@acm.org>
parents:
18087
diff
changeset
|
82 |
|
18521
b1d6ae329dd0
Generate a more meaningful message regarding the type of the documentation
Fred Drake <fdrake@acm.org>
parents:
18431
diff
changeset
|
83 The $DOCLABEL version of the documentation has been updated: |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
84 |
|
22745
c118d095bdde
Update to push the docs to python.org instead of python.sf.net.
Fred Drake <fdrake@acm.org>
parents:
20663
diff
changeset
|
85 http://$TARGETHOST/dev/doc/$DOCTYPE/ |
|
16970
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
86 |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
87 $EXPLANATION |
|
723cf5e378e5
Revise the scripts I use to update the documentation on the SourceForge
Fred Drake <fdrake@acm.org>
parents:
15460
diff
changeset
|
88 EOF |
|
19057
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
89 exit $? |
|
65fe6b07247b
Add option to push the development docs to SF without announcing, for
Fred Drake <fdrake@acm.org>
parents:
18521
diff
changeset
|
90 fi |
