Select Git revision
build_tgz.php
Hahn Axel (hahn) authored
build_tgz.php 667 B
<?php
/**
*
* Build plugin - TGZ
*
* @author <axel.hahn@iml.unibe.ch>
*
* 2024-09-02 Axel php8 only; added variable types; short array syntax
*/
class build_tgz extends build_base
{
/**
* check requirements if the plugin could work
* @return array
*/
public function checkRequirements(): array
{
return [
'which tar'
];
}
/**
* get an array with shell commands to execute
* @return array
*/
public function getBuildCommands(): array
{
return [
'cd "' . $this->getBuildDir() . '" && tar -czf "' . $this->getOutfile() . '" .'
];
}
}