Skip to content
Snippets Groups Projects
Select Git revision
  • 8b4016fc49dd4c358919782464a651f6ee1dfa91
  • master default protected
  • Legacy_Php7
3 results

build_tgz.php

Blame
  • 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() . '" .'
            ];
        }
    
    
    }