2
0
mirror of https://github.com/boostorg/website.git synced 2026-02-24 16:32:16 +00:00
Files
website/site-tools/update-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

20 lines
528 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: {}
Update the html pages and rss feeds for new or updated quickbook files.
EOL;
require_once(__DIR__.'/../common/code/bootstrap.php');
BoostSiteTools\CommandLineOptions::parse($usage);
$site_tools = new BoostSiteTools(__DIR__.'/..');
$site_tools->update_quickbook();