Skip to content
Snippets Groups Projects
Select Git revision
  • c9da1e104f9ce44730b2965b1c1cee68e51be96f
  • master default protected
2 results

init.sh.cfg

Blame
  • build_zip.php 571 B
    <?php
    
    /**
     * 
     * Build plugin - TGZ
     * 
     * @author <axel.hahn@iml.unibe.ch>
     */
    class build_zip extends build_base {
        
        /**
         * check requirements if the plugin could work
         * @return array
         */
        public function checkRequirements() {
            return [
                'which zip'
            ];
        }
        
        /**
         * get an array with shell commands to execute
         * @return array
         */
        public function getBuildCommands(){
            return [
                'cd "'. $this->getBuildDir(). '" && zip -r9 "'. $this->getOutfile().'" .'
            ];
        }
       
    
    }