]> granicus.if.org Git - python/commitdiff
Update to push the docs to python.org instead of python.sf.net.
authorFred Drake <fdrake@acm.org>
Mon, 1 Apr 2002 20:15:05 +0000 (20:15 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 1 Apr 2002 20:15:05 +0000 (20:15 +0000)
Doc/tools/push-docs.sh
Doc/tools/update-docs.sh

index 11a5f336ea3b0fb60330700c874804b2e5dfbf2d..389f7bb0406ff33710af4810ac0e6008f5151c05 100755 (executable)
@@ -3,7 +3,10 @@
 #  Script to push docs from my development area to SourceForge, where the
 #  update-docs.sh script unpacks them into their final destination.
 
-TARGET=python.sourceforge.net:/home/users/f/fd/fdrake/tmp
+TARGETHOST=www.python.org
+TARGETDIR=/usr/home/fdrake/tmp
+
+TARGET="$TARGETHOST:$TARGETDIR"
 
 ADDRESSES='python-dev@python.org doc-sig@python.org python-list@python.org'
 
@@ -68,7 +71,7 @@ make --no-print-directory bziphtml || exit $?
 RELEASE=`grep '^RELEASE=' Makefile | sed 's|RELEASE=||'`
 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 $?
+ssh "$TARGETHOST" tmp/update-docs.sh $DOCTYPE $PACKAGE '&&' rm tmp/update-docs.sh || exit $?
 
 if $ANNOUNCE ; then
     sendmail $ADDRESSES <<EOF
@@ -78,7 +81,7 @@ Subject: [$DOCLABEL doc updates]
 
 The $DOCLABEL version of the documentation has been updated:
 
-    http://python.sourceforge.net/$DOCTYPE-docs/
+    http://$TARGETHOST/dev/doc/$DOCTYPE/
 
 $EXPLANATION
 EOF
index 5f4b03d79ecb63e04b918ae79a5732fd19a08cb1..c68e8755551fd2005585de5d9e141f46894170d8 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 
 # Script which installs a development snapshot of the documentation
-# into the "Python @ SourceForge" website.
+# into the development website.
 #
-# The push-docs.sh script pushes this to the SourceForge when needed
+# The push-docs.sh script pushes this to the server when needed
 # and removes it when done.
 
 if [ -z "$HOME" ] ; then
@@ -16,15 +16,15 @@ UPDATES="$HOME/tmp/$2"
 
 TMPDIR="$$-docs"
 
-cd /home/groups/p/py/python/htdocs || exit $?
+cd /ftp/ftp.python.org/pub/www.python.org/dev/doc/ || exit $?
 mkdir $TMPDIR || exit $?
 cd $TMPDIR || exit $?
 (bzip2 -dc "$UPDATES" | tar xf -) || exit $?
 cd .. || exit $?
 
-if [ -d $DOCTYPE-docs ] ; then
-    mv $DOCTYPE-docs $DOCTYPE-temp
+if [ -d $DOCTYPE ] ; then
+    mv $DOCTYPE $DOCTYPE-temp
 fi
-mv $TMPDIR $DOCTYPE-docs
+mv $TMPDIR $DOCTYPE
 rm -rf $DOCTYPE-temp || exit $?
 rm "$UPDATES" || exit $?