2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-24 16:32:16 +00:00
Files
website/site-tools/refresh-pages.php
Daniel James b858635e19 Simple command line parser
A very simple command line parser to make the command line scripts a bit
more consistent and a tad more user friendly.
2016-10-16 12:52:01 +01:00

22 lines
648 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: {}
Reconvert all the quickbook files and regenerate the html pages. Does
not update the rss feeds or add new pages. Useful for when quickbook,
the scripts or the templates have been updated.
EOL;
require_once(__DIR__.'/../common/code/bootstrap.php');
BoostSiteTools\CommandLineOptions::parse($usage);
$site_tools = new BoostSiteTools(__DIR__.'/..');
$site_tools->update_quickbook(true);