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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
function e($cmd) {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2008-04-15 03:51:21 +00:00
|
|
|
$php = $_SERVER['argv'][1];
|
|
|
|
if (!$php) $php = 'php';
|
|
|
|
|
|
|
|
e($php . ' generate-includes.php');
|
|
|
|
e($php . ' generate-schema-cache.php');
|
|
|
|
e($php . ' flush-definition-cache.php');
|
|
|
|
e($php . ' generate-standalone.php');
|