2
0
mirror of https://github.com/boostorg/website.git synced 2026-01-19 04:42:17 +00:00
Files
website/site-tools/update-pages.php
Daniel James 40688e1552 Update links for https
Mostly in comments. Might be better to use relative links from html.
2018-04-13 09:14:48 +01:00

30 lines
766 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 https://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();
}