summaryrefslogtreecommitdiff
path: root/sandbox/davidg
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-03-22 23:09:39 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-03-22 23:09:39 +0000
commit90aa1b5a3d8a4428dbe12cd9ee4ede80e0c409f0 (patch)
treee56ee7638ea3db0a4d03d755343d0adbadaff98f /sandbox/davidg
parent32e1668aceeb960de7f1bd0ce7353a00fc8f6712 (diff)
downloaddocutils-90aa1b5a3d8a4428dbe12cd9ee4ede80e0c409f0.tar.gz
deleted docutils-update
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3087 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/davidg')
-rwxr-xr-xsandbox/davidg/infrastructure/docutils-update139
1 files changed, 0 insertions, 139 deletions
diff --git a/sandbox/davidg/infrastructure/docutils-update b/sandbox/davidg/infrastructure/docutils-update
deleted file mode 100755
index f5ebbd231..000000000
--- a/sandbox/davidg/infrastructure/docutils-update
+++ /dev/null
@@ -1,139 +0,0 @@
-#! /bin/sh
-# $Id$
-#
-# This script is installed as a cron job to automatically update the
-# Docutils web site whenever the CVS files change. Any .html document
-# with a corresponding .txt file is regenerated whenever the .txt
-# changes.
-#
-# Options:
-# -e Access CVS as current user ("ext" instead of "pserver"; requires
-# authentication).
-# -f Provide feedback at start and end of program run.
-# -p Run from the project directory.
-# -t Run the script in trace mode ("set -o xtrace").
-# -u Regenerate .html unconditionally.
-# -v Run verbosely.
-
-# exit on error
-set -e
-
-# make all newly created files group writeable
-umask 002
-
-projdir=/home/groups/d/do/docutils
-project=docutils
-dest=$projdir/htdocs
-snapshotdir=$projdir/snapshots
-pylib=$projdir/lib/python
-lib=$pylib/$project
-root=
-
-export CVS_RSH=ssh
-export CVSROOT=:pserver:anonymous@cvs1:/cvsroot/$project
-
-feedback=0
-trace=0
-unconditional=0
-verbose=0
-
-while getopts efptuv opt
-do
- case $opt in
- e) root="-d:ext:${USER}@cvs1:/cvsroot/docutils" ;;
- f) feedback=1;;
- p) export PYTHONPATH=$pylib:$lib:$lib/extras;;
- t) trace=1;;
- u) unconditional=1;;
- v) verbose=1;;
- \?) exit 2;;
- esac
-done
-shift `expr $OPTIND - 1`
-
-if [ $feedback -eq 1 ] ; then
- echo 'Starting docutils-update run...'
-fi
-
-if [ $trace -eq 1 -o $verbose -eq 1 ] ; then
- set -o xtrace
-fi
-
-# update library area
-cd $lib
-cvs -Q -z3 $root update -d -P 2>&1 > /dev/null
-
-# gather the materials
-cd $snapshotdir
-cvs -Q -z3 $root update -d -P -rHEAD $project sandbox web
-
-# ensure proper permissions are set
-find . -type f -print0 | xargs -0 chmod ug+rw 2> /dev/null || true
-find . -type d -print0 | xargs -0 chmod ug+rwxs 2> /dev/null || true
-
-# ensure executable bits are set
-chmod +x $project/*.py 2> /dev/null || true
-chmod +x $project/tools/*.py 2> /dev/null || true
-chmod +x $project/test/alltests.py 2> /dev/null || true
-find $project/test -name 'test_*.py' -print0 | xargs -0 chmod +x 2> /dev/null || true
-
-# create the snapshots
-exclude='--exclude=CVS --exclude=.cvsignore'
-tar -cz $exclude -f $project-snapshot.tgz $project
-tar -cz $exclude -f $project-sandbox-snapshot.tgz sandbox
-tar -cz $exclude -f $project-web-snapshot.tgz web
-( cd sandbox/gschwant ;
- tar -cz $exclude -f ../../docfactory-snapshot.tgz docfactory )
-
-# plant the snapshots
-mv -f *snapshot.tgz $dest
-
-# update htdocs
-cp -ruf $project/* $dest
-cp -ruf sandbox $dest
-cp -ruf web/* web/.[^.]* $dest
-
-# remove CVS crud
-cd $dest
-find -name CVS -type d -exec rm -rf {} \; -prune
-find -name .cvsignore -type f -exec rm -f {} \; -prune
-
-# ensure proper permissions are set
-cd $dest
-find . -type f -print0 | xargs -0 chmod ug+rw 2> /dev/null || true
-find . -type d -print0 | xargs -0 chmod ug+rwxs 2> /dev/null || true
-
-# update HTML docs
-cd $dest/tools
-
-if [ $trace -eq 0 ] ; then
- set +o xtrace
-fi
-
-for htmlfile in `find .. -name '*.html'` ; do
- dir=`dirname $htmlfile`
- base=`basename $htmlfile .html`
- txtfile=$dir/$base.txt
- if [ -e $txtfile ] ; then
- if [ $unconditional -eq 1 -o $txtfile -nt $htmlfile ] ; then
- if [ "${base:0:4}" == "pep-" ] ; then
- echo "$txtfile (PEP)"
- # pep2html.py fails on SourceForge; can't import cgi
- # (cgi imports urllib which imports socket which imports
- # _socket; libssl.so.2 doesn't exist on SF):
- ~/bin/python $lib/tools/pep.py --config=$dir/docutils.conf $txtfile $htmlfile
- else
- echo $txtfile
- ~/bin/python $lib/tools/rst2html.py --config=$dir/docutils.conf $txtfile $htmlfile
- fi
- fi
- fi
-done
-
-if [ $feedback -eq 1 ] ; then
- echo '...docutils-update done.'
-fi
-
-# Local Variables:
-# indent-tabs-mode: nil
-# End: