Explicitly initialize anonModule to null.
[htmlpurifier.git] / maintenance / flush.php
blob6dada93f47b2c8e185189b9e0f0f4b209bf0f673
1 #!/usr/bin/php
2 <?php
4 chdir(dirname(__FILE__));
5 require_once 'common.php';
6 assertCli();
8 /**
9 * @file
10 * Runs all generation/flush cache scripts to ensure that somewhat volatile
11 * generated files are up-to-date.
14 function e($cmd) {
15 echo "\$ $cmd\n";
16 passthru($cmd, $status);
17 echo "\n";
18 if ($status) exit($status);
21 $php = empty($_SERVER['argv'][1]) ? 'php' : $_SERVER['argv'][1];
23 e($php . ' generate-includes.php');
24 e($php . ' generate-schema-cache.php');
25 e($php . ' flush-definition-cache.php');
26 e($php . ' generate-standalone.php');
27 e($php . ' config-scanner.php');
29 // vim: et sw=4 sts=4