Changeset 292 for trunk/build/preprocess.php

Show
Ignore:
Timestamp:
11/05/06 10:06:00 (2 years ago)
Author:
laurentj
Message:

nouveau système de build en php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/build/preprocess.php

    r232 r292  
    1111*/ 
    1212 
    13 require_once(dirname(__FILE__).'/preprocessor.lib.php'); 
     13require_once(dirname(__FILE__).'/lib/preprocessor.lib.php'); 
     14require_once(dirname(__FILE__).'/lib/jBuildUtils.lib.php'); 
    1415 
    1516// arguments :  chemin_source chemin_dist 
     
    3940   } 
    4041} 
    41  
    42 function createDir ($dir){ 
    43     if (!file_exists($dir)) { 
    44         createDir(dirname($dir)); 
    45         mkdir($dir, 0775); 
    46     } 
    47 } 
    48  
    49 function normalizeDir($dirpath){ 
    50   if(substr($dirpath,-1) != '/'){ 
    51     $dirpath.='/'; 
    52   } 
    53   return $dirpath; 
    54 } 
    55  
    56  
    5742try{ 
    5843 
     
    6651} 
    6752 
    68 createDir(dirname($distfile)); 
     53jBuildUtils::createDir(dirname($distfile)); 
    6954file_put_contents($distfile, $dist); 
    7055exit(0); 
Download in other formats: Unified Diff Zip Archive