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.

Location:
build-tools
Files:
4 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     { 
  • build-tools/make-l10n.php

    r1863 r2566  
    2828     $dest = dirname($f).'/'.basename($f,'.po').'.lang.php'; 
    2929     echo "l10n file ".$dest.": "; 
    30       
     30 
    3131     if (l10n::generatePhpFileFromPo(dirname($f).'/'.basename($f,'.po'),$license_block)) { 
    3232          echo 'OK'; 
  • build-tools/min-js.php

    r1179 r2566  
    1515{ 
    1616     $js = (!empty($_SERVER['argv'][1])) ? $_SERVER['argv'][1] : null; 
    17       
     17 
    1818     if (!$js || !is_file($js)) { 
    1919          throw new Exception(sprintf("File %s does not exist",$js)); 
    2020     } 
    21       
     21 
    2222     require dirname(__FILE__).'/jsmin-1.1.1.php'; 
    23       
     23 
    2424     $content = file_get_contents($js); 
    2525     $res = JSMin::minify($content); 
    26       
     26 
    2727     if (($fp = fopen($js,'wb')) === false) { 
    2828          throw new Exception(sprintf('Unable to open file %s',$js)); 
  • build-tools/po_update.sh

    r2283 r2566  
    6868{ 
    6969     tee - 
    70       
     70 
    7171     $XGETTEXT \ 
    7272     - \ 
     
    8484     po_dir=`dirname $1` 
    8585     po_tmp=$po_dir/tmp.po~ 
    86       
     86 
    8787     if [ ! -d $po_dir ]; then 
    8888          mkdir $po_dir 
    8989     fi 
    90       
     90 
    9191     if [ ! -f $po_file ]; then 
    9292          cp $pot_file $po_file 
    9393          perl -pi -e "s|; charset=CHARSET|; charset=UTF-8|sgi;" $po_file $po_file 
    9494     fi 
    95       
     95 
    9696     $MSGMERGE --no-location --no-wrap -o $po_tmp $po_file $pot_file 
    9797     mv $po_tmp $po_file 
     
    108108          -o locales/_pot/main.pot \ 
    109109          -x locales/_pot/date.pot 
    110       
     110 
    111111     echo "DONE" 
    112       
     112 
    113113     # plugins.pot 
    114114     echo "Building plugins PO template..." 
     
    123123          -x locales/_pot/date.pot \ 
    124124          -x locales/_pot/main.pot 
    125       
     125 
    126126     echo "DONE" 
    127       
     127 
    128128     # 
    129129     # Update locales/<lang> if needed 
     
    132132          exit 0; 
    133133     fi 
    134       
     134 
    135135     # Init locale if not present 
    136136     if [ ! -d locales/$PO_LANG ]; then 
    137137          mkdir -p locales/$PO_LANG/help 
    138            
     138 
    139139          # Base help files 
    140140          for i in locales/en/help/*.html; do 
     
    147147          done 
    148148     fi 
    149       
     149 
    150150     # update main.po 
    151151     echo "Updating <$PO_LANG> po files..." 
     
    158158     # Plugin language update 
    159159     # 
    160       
     160 
    161161     if [ ! -d $PO_MODULE ]; then 
    162162          echo "Module $PO_MODULE does not exist" 
     
    164164     fi 
    165165     echo "Module $PO_MODULE language update" 
    166       
    167       
     166 
     167 
    168168     # 
    169169     # Building po template file 
     
    173173     fi 
    174174     echo "Building main PO template..." 
    175      echo '<?php' >$PO_MODULE/__html_tpl_dummy.php  
     175     echo '<?php' >$PO_MODULE/__html_tpl_dummy.php 
    176176     find $PO_MODULE -name '*.html' -exec grep -o '{{tpl:lang [^}]*}}' {} \; | sed 's/{{tpl:lang \(.*\)}}$/__\("\1")/' | sort -u \ 
    177177          >> $PO_MODULE/__html_tpl_dummy.php 
    178      sed -i "" 's/\$/\\\$/g' $PO_MODULE/__html_tpl_dummy.php  
    179       
     178     sed -i "" 's/\$/\\\$/g' $PO_MODULE/__html_tpl_dummy.php 
     179 
    180180     find $PO_MODULE -name '*.php' -print | \ 
    181181          extract_strings \ 
     
    183183          -o $PO_MODULE/locales/_pot/main.pot \ 
    184184          -x locales/_pot/date.pot -x locales/_pot/main.pot -x locales/_pot/public.pot -x locales/_pot/plugins.pot 
    185       
     185 
    186186     rm -f $PO_MODULE/__html_tpl_dummy.php 
    187       
     187 
    188188     echo "DONE" 
    189       
     189 
    190190     # 
    191191     # Update locale/<lang> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map