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:35:59 +00:00
|
|
|
e($argv[0] . ' generate-includes.php');
|
|
|
|
e($argv[0] . ' generate-schema-cache.php');
|
|
|
|
e($argv[0] . ' flush-definition-cache.php');
|
|
|
|
e($argv[0] . ' generate-standalone.php');
|