From 749433d218ef600dc2c88d24cd56c08fc83a5407 Mon Sep 17 00:00:00 2001 From: Jim Winstead Date: Wed, 23 Oct 2024 09:52:53 -0700 Subject: [PATCH] Get rid of unused cron stuff in this repo (#52) --- cron/README | 14 -------------- cron/cron | 24 ------------------------ cron/hourly/populatedocs | 18 ------------------ cron/hourly/update_docs_mirror | 6 ------ cron/weekly/phd-guide | 18 ------------------ 5 files changed, 80 deletions(-) delete mode 100644 cron/README delete mode 100755 cron/cron delete mode 100755 cron/hourly/populatedocs delete mode 100644 cron/hourly/update_docs_mirror delete mode 100755 cron/weekly/phd-guide diff --git a/cron/README b/cron/README deleted file mode 100644 index 63d0d77..0000000 --- a/cron/README +++ /dev/null @@ -1,14 +0,0 @@ -Cronjob Wrapper for Docweb - -This directory tree allows pseudo-crontab manipulation whenever CVS updates, -avoiding the need for manual editing of the doc.php.net crontab. - -For each script that should run at a regular interval (currently hourly, -daily, weekly, monthly), place a wrapper for this script in the appropriate -sub-directory. - -The actual crontab for docweb should look something like this: -0 * * * * /path/to/docweb/cron/cron hourly -0 0 * * * /path/to/docweb/cron/cron daily -0 0 * * 1 /path/to/docweb/cron/cron weekly -0 0 1 * * /path/to/docweb/cron/cron monthly diff --git a/cron/cron b/cron/cron deleted file mode 100755 index 5db6b03..0000000 --- a/cron/cron +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -CRONSETPATH=`dirname $0`/$1 -OUTPUT=/dev/null - -if [ -d $CRONSETPATH ] -then - pushd . > /dev/null - cd $CRONSETPATH - - for job in `ls -1` - do - if [ -f ./$job ] && [ -x ./$job ] - then - ./$job > $OUTPUT - fi - done - - popd > /dev/null - -else - echo "'$1' is not a valid cron set" - -fi diff --git a/cron/hourly/populatedocs b/cron/hourly/populatedocs deleted file mode 100755 index f1e1494..0000000 --- a/cron/hourly/populatedocs +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# Only run every 4 hours -HOUR=`/bin/date +%H` -if [ `expr $HOUR % 4` -ne 0 ]; then - exit 0 -fi - -# This task run two shell scripts responsible for revision check -# - populatedocs.sh - checking out SVN docs repository into local filesystem -# - generation.sh - generating revision check database and charts - -. `dirname $0`/../../build-ops - -cd ${SCRIPTSDIR} - -./populatedocs.sh -./generation.sh diff --git a/cron/hourly/update_docs_mirror b/cron/hourly/update_docs_mirror deleted file mode 100644 index 18d086f..0000000 --- a/cron/hourly/update_docs_mirror +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -rsync -avzC --timeout=600 --delete --delete-after \ - --include='distributions/*.exe' \ - --exclude='manual/**' \ - --exclude='distributions/manual/**' \ - rsync.php.net::phpweb /local/Web/sites/docs.php.net diff --git a/cron/weekly/phd-guide b/cron/weekly/phd-guide deleted file mode 100755 index b189b39..0000000 --- a/cron/weekly/phd-guide +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh/ - -# This task renders PhD's guide and places it on /phd/docs/ -# -# Globally installed `phd` is not used yet, because valid -# renderer is available only in master version at the moment. -# -# This will be simplified after next PhD release, but ${PHDDIR} -# will still be needed for getting latest sources for the Guide. - -. `dirname $0`/../../build-ops - -cd ${DOCWEB}/www/phd/ - -${PHP} ${PHDDIR}/render.php -d ${PHDDIR}/docs/phd-guide/phd-guide.xml --package PHP --format howto --output docs - -mv docs/php-howto/* docs/ -rm -r docs/php-howto/