Changeset 292 for trunk/build/preprocess.php
- Timestamp:
- 11/05/06 10:06:00 (2 years ago)
- Files:
-
- trunk/build/preprocess.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/preprocess.php
r232 r292 11 11 */ 12 12 13 require_once(dirname(__FILE__).'/preprocessor.lib.php'); 13 require_once(dirname(__FILE__).'/lib/preprocessor.lib.php'); 14 require_once(dirname(__FILE__).'/lib/jBuildUtils.lib.php'); 14 15 15 16 // arguments : chemin_source chemin_dist … … 39 40 } 40 41 } 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 57 42 try{ 58 43 … … 66 51 } 67 52 68 createDir(dirname($distfile));53 jBuildUtils::createDir(dirname($distfile)); 69 54 file_put_contents($distfile, $dist); 70 55 exit(0);
