16 print "WIFF_ROOT environment variable is not set!\n";
22 print "WIFF_CONTEXT_ROOT environment variable not set!\n";
26 set_include_path(get_include_path() . PATH_SEPARATOR .
$WIFF_CONTEXT_ROOT . PATH_SEPARATOR .
"$WIFF_ROOT/include");
30 print "cannot include file $prefix";
34 include (
"WHAT/Lib.Common.php");
35 include (
"WHAT/Lib.WCheck.php");
38 printf(
"program %s need application parameter\n", $argv[0]);
51 printf(
"application %s not found\n", $argv[1]);
55 require (
'lib/Lib.Cli.php');
72 return preg_match(
"@/${appname_RE}_(pre)?migr@", $x);
76 error_log(sprintf(
"Executing [%s]...", $cmd));
80 error_log(sprintf(
"Failed!"));
83 error_log(sprintf(
"Done."));
getCheckActions($pubdir, $tapp, &$tact, $usePreviousVersion=false)
foreach($argv as $arg) $cmd
if($WIFF_ROOT===false) $WIFF_CONTEXT_ROOT
getCheckApp($pubdir, &$tapp, $usePreviousVersion=false)