2008-02-24 05:06:39 +00:00
|
|
|
#!/usr/bin/php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
chdir(dirname(__FILE__));
|
|
|
|
require_once 'common.php';
|
|
|
|
assertCli();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Runs all generation/flush cache scripts to ensure that somewhat volatile
|
|
|
|
* generated files are up-to-date.
|
|
|
|
*/
|
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
function e($cmd)
|
|
|
|
{
|
2008-02-24 05:06:39 +00:00
|
|
|
echo "\$ $cmd\n";
|
2008-04-03 20:52:08 +00:00
|
|
|
passthru($cmd, $status);
|
2008-02-24 05:06:39 +00:00
|
|
|
echo "\n";
|
2008-04-03 20:52:08 +00:00
|
|
|
if ($status) exit($status);
|
2008-02-24 05:06:39 +00:00
|
|
|
}
|
|
|
|
|
2010-06-01 03:07:09 +00:00
|
|
|
$php = empty($_SERVER['argv'][1]) ? 'php' : $_SERVER['argv'][1];
|
2008-04-15 03:51:21 +00:00
|
|
|
|
|
|
|
e($php . ' generate-includes.php');
|
|
|
|
e($php . ' generate-schema-cache.php');
|
|
|
|
e($php . ' flush-definition-cache.php');
|
|
|
|
e($php . ' generate-standalone.php');
|
2008-04-22 05:38:03 +00:00
|
|
|
e($php . ' config-scanner.php');
|
2008-12-06 09:24:59 +00:00
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|