Changeset 313 for trunk/build/mkdist.php

Show
Ignore:
Timestamp:
11/24/06 01:05:02 (2 years ago)
Author:
laurentj
Message:

jbuildtools : correction sur des problèmes de paramètres d'appel

Files:

Legend:

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

    r292 r313  
    2020array_shift($_SERVER['argv']); // shift the script name 
    2121 
    22 $options = array('verbose'=>false); 
     22$options = array('verbose'=>false, 'stripcomment'=>false); 
    2323 
    2424if(substr($_SERVER['argv'][0],0,1) == '-'){ 
    2525  $sw = substr(array_shift($_SERVER['argv']),1); 
    2626  $options['verbose'] = (strpos('v', $sw) !== false); 
    27  
     27  $options['stripcomment'] = (strpos('c', $sw) !== false); 
    2828} 
    2929 
    3030try { 
    3131    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']); 
    3333    exit(0); 
    3434}catch(Exception $e){ 
Download in other formats: Unified Diff Zip Archive