Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build-tools/dh-make-dotclear

    r0 r2566  
    66     private $type; 
    77     private $today; 
    8       
     8 
    99     private $id; 
    1010     private $package_name; 
     
    1313     private $author; 
    1414     private $version; 
    15       
     15 
    1616     public function __construct($module,$type) 
    1717     { 
     
    2020          } 
    2121          $this->type = $type; 
    22            
     22 
    2323          if (!$module || !is_dir($module)) { 
    2424               throw new Exception(sprintf('Module %s does not exist',$module)); 
    2525          } 
    26            
     26 
    2727          $mod_define = $module.'/_define.php'; 
    28            
     28 
    2929          if (!is_file($mod_define)) { 
    3030               throw new Exception(sprintf('Module %s does not have _define.php file',$module)); 
    3131          } 
    32            
     32 
    3333          if (is_dir($module.'/debian')) { 
    3434               throw new Exception(sprintf('Module %s already have a debian directory',$module)); 
    3535          } 
    36            
     36 
    3737          include $mod_define; 
    3838          $this->id = strtolower(basename(realpath($module))); 
    3939          $this->package_name = 'libdotclear-'.$this->type.'-'.$this->id; 
    40            
     40 
    4141          # Creating debian directory 
    4242          $this->deb = $module.'/debian'; 
    4343          mkdir($this->deb); 
    44            
     44 
    4545          $this->createFile('changelog',$this->changelogTPL()); 
    4646          $this->createFile('compat',"4\n"); 
     
    5151          chmod($this->deb.'/rules',0755); 
    5252     } 
    53       
     53 
    5454     private function registerModule($name,$desc,$author,$version) 
    5555     { 
     
    5959          $this->version = $version; 
    6060     } 
    61       
     61 
    6262     private function createFile($name,$content='') 
    6363     { 
     
    6666          fclose($fp); 
    6767     } 
    68       
     68 
    6969     private function changelogTPL() 
    7070     { 
     
    7676          " -- ".$this->author." <email@example.com>  ".date('r')."\n\n"; 
    7777     } 
    78       
     78 
    7979     private function controlTPL() 
    8080     { 
     
    9696          "\n"; 
    9797     } 
    98       
     98 
    9999     private function copyrightTPL() 
    100100     { 
     
    126126          "\n"; 
    127127     } 
    128       
     128 
    129129     private function dirsTPL() 
    130130     { 
     
    132132          '/usr/share/dotclear/'.$this->type.'s/'.$this->id."\n"; 
    133133     } 
    134       
     134 
    135135     private function rulesTPL() 
    136136     { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map