|
|
@ -100,13 +100,18 @@ if (strtolower($input) == 'y') {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// check if js-deps are up-to-date
|
|
|
|
// check if js-deps are up-to-date
|
|
|
|
$jsdeps = json_decode(file_get_contents("$target_dir/jsdeps.json"));
|
|
|
|
if (file_exists("$target_dir/jsdeps.json") && file_exists("$target_dir/bin/install-jsdeps.sh")) {
|
|
|
|
$package = $jsdeps->dependencies[0];
|
|
|
|
$jsdeps = json_decode(file_get_contents("$target_dir/jsdeps.json"));
|
|
|
|
$dest_file = $target_dir . '/' . $package->dest;
|
|
|
|
$package = $jsdeps->dependencies[0];
|
|
|
|
if (!file_exists($dest_file) || sha1_file($dest_file) !== $package->sha1) {
|
|
|
|
$dest_file = $target_dir . '/' . $package->dest;
|
|
|
|
echo "Installing JavaScript dependencies...";
|
|
|
|
if (!file_exists($dest_file) || sha1_file($dest_file) !== $package->sha1) {
|
|
|
|
system("cd $target_dir && bin/install-jsdeps.sh");
|
|
|
|
echo "Installing JavaScript dependencies...";
|
|
|
|
echo "done.\n\n";
|
|
|
|
system("cd $target_dir && bin/install-jsdeps.sh");
|
|
|
|
|
|
|
|
echo "done.\n\n";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
echo "JavaScript dependencies installation skipped...\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
echo "Running update script at target...\n";
|
|
|
|
echo "Running update script at target...\n";
|
|
|
|