summaryrefslogtreecommitdiff
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-19 05:54:51 +0000
committerFred Drake <fdrake@acm.org>2000-10-19 05:54:51 +0000
commit2dbd374c290c6cdbf8b4e3b7a8f124f78c9ee5e9 (patch)
treec54a500da6bbb165983a22ee5ef9d347c94f87fb /Doc/tools
parente8dc292269b7267c36aae0a79cbfceb7de5a78fa (diff)
downloadcpython-2dbd374c290c6cdbf8b4e3b7a8f124f78c9ee5e9.tar.gz
Helper scripts used in published the "development" snapshots of the
Python documentation.
Diffstat (limited to 'Doc/tools')
-rwxr-xr-xDoc/tools/push-docs.sh16
-rwxr-xr-xDoc/tools/update-docs.sh27
2 files changed, 43 insertions, 0 deletions
diff --git a/Doc/tools/push-docs.sh b/Doc/tools/push-docs.sh
new file mode 100755
index 0000000000..f36438fd0e
--- /dev/null
+++ b/Doc/tools/push-docs.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+# Script to push docs from my development area to SourceForge, where the
+# update-docs.sh script unpacks them into their final destination.
+
+START="`pwd`"
+MYDIR="`dirname $0`"
+cd "$MYDIR"
+MYDIR="`pwd`"
+HTMLDIR="${HTMLDIR:-html}"
+
+cd "../$HTMLDIR"
+make --no-print-directory || exit $?
+RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
+make --no-print-directory HTMLDIR="$HTMLDIR" bziphtml
+scp "html-$RELEASE.tar.bz2" python.sourceforge.net:/home/users/fdrake/python-docs-update.tar.bz2
diff --git a/Doc/tools/update-docs.sh b/Doc/tools/update-docs.sh
new file mode 100755
index 0000000000..53b6fc5197
--- /dev/null
+++ b/Doc/tools/update-docs.sh
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+# Script which determines if a new development snapshot of the
+# documentation is available, and unpacks it into the "Python @
+# SourceForge" website.
+#
+# A copy of this script is run periodically via cron.
+
+if [ -z "$HOME" ] ; then
+ HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
+ export HOME
+fi
+
+UPDATES=/home/users/fdrake/python-docs-update.tar.bz2
+
+if [ -f "$UPDATES" ] ; then
+ cd /home/groups/python/htdocs
+ rm -rf devel-docs || exit $?
+ mkdir devel-docs || exit $?
+ cd devel-docs || exit $?
+ (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
+ rm "$UPDATES" || exit $?
+ Mail -s '[online doc updates]' fdrake@acm.org <<EOF
+Development version of documentation updated:
+http://python.sourceforge.net/devel-docs/
+EOF
+fi