[Python-checkins] r79470 - peps/trunk/update.sh

antoine.pitrou python-checkins at python.org
Sat Mar 27 16:41:54 CET 2010


Author: antoine.pitrou
Date: Sat Mar 27 16:41:54 2010
New Revision: 79470

Log:
Issue #8244: remove obsolete update file.



Removed:
   peps/trunk/update.sh

Deleted: peps/trunk/update.sh
==============================================================================
--- peps/trunk/update.sh	Sat Mar 27 16:41:54 2010
+++ (empty file)
@@ -1,42 +0,0 @@
-#! /bin/sh
-
-# This script is meant to be run by cron regularly on the
-# www.python.org server to avoid letting the online PEPs get stale.
-# Before using it, the user whose account it is run under needs to use
-# the "cvs login" command to log into the Python CVS server as
-# anonymous.
-
-TMPDIR="$HOME/tmp"
-WORKDIR="peps-$$"
-
-TARGETDIR='/ftp/ftp.python.org/pub/www.python.org/peps'
-
-CVSROOT=':pserver:anonymous at cvs.python.sourceforge.net:/cvsroot/python'
-export CVSROOT
-
-cd "$TMPDIR" || exit $?
-cvs -Q checkout -d "$WORKDIR" python/nondist/peps || exit $?
-
-cd "$WORKDIR" || exit $?
-python ./pep2html.py -q || exit $?
-
-# This loop avoids modifying the files for an unchanged PEP.
-# The HTML file is treated a little strangely since it contains the
-# (pseudo-)random selection of the corner logo.
-
-for FILE in *.txt ; do
-    HTML="${FILE%txt}html"
-    if [ -e "$TARGETDIR/$FILE" ] ; then
-        if cmp -s "$FILE" "$TARGETDIR/$FILE" ; then
-            true
-        else
-            cp "$FILE" "$TARGETDIR/" || exit $?
-            cp "$HTML" "$TARGETDIR/" || exit $?
-        fi
-    else
-        cp "$HTML" "$TARGETDIR/" || exit $?
-    fi
-done
-
-cd "$TMPDIR" || exit $?
-rm -r "$WORKDIR" || exit $?


More information about the Python-checkins mailing list