Revert dir need regen support
Publish PHP Package / docker (push) Successful in 8s
Details
Publish PHP Package / docker (push) Successful in 8s
Details
This commit is contained in:
parent
8e4a56f89c
commit
fd241509a5
|
@ -170,21 +170,15 @@ function json_make_pretty(string $json) : string
|
||||||
|
|
||||||
function need_to_regen(string $file, array $deps, bool $debug = false) : bool
|
function need_to_regen(string $file, array $deps, bool $debug = false) : bool
|
||||||
{
|
{
|
||||||
if(is_file($file))
|
if(!is_file($file))
|
||||||
{
|
|
||||||
$fmtime = filemtime($file);
|
|
||||||
}
|
|
||||||
else if(is_dir($file))
|
|
||||||
{
|
|
||||||
$fmtime = filectime($file);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if($debug)
|
if($debug)
|
||||||
echo "! $file\n";
|
echo "! $file\n";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$fmtime = filemtime($file);
|
||||||
|
|
||||||
foreach($deps as $dep)
|
foreach($deps as $dep)
|
||||||
{
|
{
|
||||||
if($dep && is_file($dep) && (filemtime($dep) > $fmtime))
|
if($dep && is_file($dep) && (filemtime($dep) > $fmtime))
|
||||||
|
|
Loading…
Reference in New Issue