[web-doc] master: Get rid of unused cron stuff in this repo (#52)

From: Date: Wed, 23 Oct 2024 16:56:05 +0000
Subject: [web-doc] master: Get rid of unused cron stuff in this repo (#52)
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2528@lists.php.net to get a copy of this message
Author: Jim Winstead (jimwins) Committer: GitHub (web-flow) Pusher: jimwins Date: 2024-10-23T09:52:53-07:00 Commit: https://github.com/php/web-doc/commit/749433d218ef600dc2c88d24cd56c08fc83a5407 Raw diff: https://github.com/php/web-doc/commit/749433d218ef600dc2c88d24cd56c08fc83a5407.diff Get rid of unused cron stuff in this repo (#52) Changed paths: D cron/README D cron/cron D cron/hourly/populatedocs D cron/hourly/update_docs_mirror D cron/weekly/phd-guide Diff: 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/

« previous php.doc.web (#2528) next »