taskman_deps/deps.inc.php

26 lines
438 B
PHP

<?php
namespace taskman;
task('deps_update', function()
{
update_composer();
});
function update_composer()
{
global $GAME_ROOT;
include("$GAME_ROOT/composer/update.php");
touch("$GAME_ROOT/composer/composer.last");
}
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;
}