mirror of
https://github.com/php/web-doc.git
synced 2025-08-01 16:41:32 +00:00
Get rid of unused cron stuff in this repo (#52)
This commit is contained in:
14
cron/README
14
cron/README
@ -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
|
24
cron/cron
24
cron/cron
@ -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
|
@ -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
|
@ -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
|
@ -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/
|
Reference in New Issue
Block a user