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

build_zip.php

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