25 lines
392 B
PHP
25 lines
392 B
PHP
|
<?php
|
||
|
namespace taskman;
|
||
|
|
||
|
task('deps_update', function()
|
||
|
{
|
||
|
update_composer();
|
||
|
});
|
||
|
|
||
|
function update_composer()
|
||
|
{
|
||
|
global $GAME_ROOT;
|
||
|
include("$GAME_ROOT/composer/update.php");
|
||
|
}
|
||
|
|
||
|
function try_update_composer()
|
||
|
{
|
||
|
global $GAME_ROOT;
|
||
|
|
||
|
if(!need_to_regen("$GAME_ROOT/composer/composer.last", ["$GAME_ROOT/composer/composer.json"]))
|
||
|
return false;
|
||
|
|
||
|
update_composer();
|
||
|
return true;
|
||
|
}
|