Changeset 313
- Timestamp:
- 11/24/06 01:05:02 (2 years ago)
- Files:
-
- trunk/build/lib/jManifest.class.php (modified) (1 diff)
- trunk/build/mkdist.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/lib/jManifest.class.php
r297 r313 60 60 $contents = $preproc->parseFile($sourcefile); 61 61 }catch(Exception $e){ 62 throw new Exception ( "$ficlist : line $nbline, cannot process file ".$m[2]." (" , $e ,")\n");62 throw new Exception ( "$ficlist : line $nbline, cannot process file ".$m[2]." (". $e->getMessage() .")\n"); 63 63 } 64 64 if($m[1]=='*' && $stripcomment && preg_match("/\.php$/",$destfile)){ trunk/build/mkdist.php
r292 r313 20 20 array_shift($_SERVER['argv']); // shift the script name 21 21 22 $options = array('verbose'=>false );22 $options = array('verbose'=>false, 'stripcomment'=>false); 23 23 24 24 if(substr($_SERVER['argv'][0],0,1) == '-'){ 25 25 $sw = substr(array_shift($_SERVER['argv']),1); 26 26 $options['verbose'] = (strpos('v', $sw) !== false); 27 27 $options['stripcomment'] = (strpos('c', $sw) !== false); 28 28 } 29 29 30 30 try { 31 31 list($ficlist, $sourcedir, $distdir) = $_SERVER['argv']; 32 jManifest::process($ficlist, $sourcedir, $distdir, $_SERVER, $options[' verbose']);32 jManifest::process($ficlist, $sourcedir, $distdir, $_SERVER, $options['stripcomment'], $options['verbose']); 33 33 exit(0); 34 34 }catch(Exception $e){
