2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-29 20:12:14 +00:00
Files
website/site-tools/update-pages.php
Daniel James c9376119b1 Option to only update 'in progress' pages in update-pages.php
I think I'll use this in a cron job, so that updates to more public
pages can be checked before being released. Also won't have to deal with
automatically adding new files.
2016-12-06 00:16:08 +00:00

30 lines
765 B
PHP
Executable File

#!/usr/bin/env php
<?php
# Copyright 2007 Rene Rivera
# Copyright 2011, 2015 Daniel James
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
$usage = <<<EOL
Usage: {} [--in-progress-only]
Update the html pages and rss feeds for new or updated quickbook files.
Flags:
--in-progress-only Only update the 'in progress' page.
EOL;
require_once(__DIR__.'/../common/code/bootstrap.php');
$options = BoostSiteTools\CommandLineOptions::parse($usage, array(
'in-progress-only' => false));
$site_tools = new BoostSiteTools();
if ($options->flags['in-progress-only']) {
$site_tools->update_in_progress_pages();
} else {
$site_tools->update_quickbook();
}