summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-08 05:41:01 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-08 05:41:01 (GMT)
commite54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1 (patch)
tree051aeeed0a678cf5e6c278787266987ee62fa629 /Doc/tools
parentecab00176f68324d87aa8ab9b1cf5f918780863a (diff)
downloadcpython-e54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1.zip
cpython-e54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1.tar.gz
cpython-e54acfd8b2c41597fac0e8c1b0e6cb7cd263dad1.tar.bz2
Add option to push the development docs to SF without announcing, for
when the changes are just too small.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/push-docs.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/tools/push-docs.sh b/Doc/tools/push-docs.sh
index 6f93b85..381b160 100755
--- a/Doc/tools/push-docs.sh
+++ b/Doc/tools/push-docs.sh
@@ -18,6 +18,7 @@ else
fi
EXPLANATION=''
+ANNOUNCE=true
while [ "$#" -gt 0 ] ; do
case "$1" in
@@ -25,6 +26,10 @@ while [ "$#" -gt 0 ] ; do
EXPLANATION="$2"
shift 2
;;
+ -q)
+ ANNOUNCE=false
+ shift 1
+ ;;
-t)
DOCTYPE="$2"
shift 2
@@ -66,7 +71,8 @@ PACKAGE="html-$RELEASE.tar.bz2"
scp "$PACKAGE" tools/update-docs.sh $TARGET/ || exit $?
ssh python.sourceforge.net tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
-sendmail $ADDRESSES <<EOF
+if $ANNOUNCE ; then
+ sendmail $ADDRESSES <<EOF
To: $ADDRESSES
From: "Fred L. Drake" <fdrake@acm.org>
Subject: [$DOCLABEL doc updates]
@@ -77,4 +83,5 @@ The $DOCLABEL version of the documentation has been updated:
$EXPLANATION
EOF
-exit $?
+ exit $?
+fi