Development

Changeset 1797

You must first sign up to be able to contribute.

Changeset 1797

Show
Ignore:
Timestamp:
08/24/06 08:04:43 (2 years ago)
Author:
fabien
Message:

added some more syntax coloring

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/bin/symfony.php

    r1793 r1797  
    99$pear_lib_dir = '@PEAR-DIR@'; 
    1010$pear_data_dir = '@DATA-DIR@'; 
    11 define('PAKEFILE_SYMLINK', false); 
    12 define('SYMFONY_VERSION',  '@SYMFONY-VERSION@'); 
     11define('PAKEFILE_SYMLINK', false); 
     12define('SYMFONY_VERSION',  '@SYMFONY-VERSION@'); 
    1313 
    1414if (is_readable('lib/symfony')) 
     
    3636require_once 'pake/pakeGetopt.class.php'; 
    3737$OPTIONS = array( 
    38   array('--version', '-V', pakeGetopt::NO_ARGUMENT, ''), 
     38  array('--version', '-V', pakeGetopt::NO_ARGUMENT, ''), 
    3939  array('--pakefile', '-f', pakeGetopt::OPTIONAL_ARGUMENT, ''), 
    40   array('--tasks', '-T', pakeGetopt::OPTIONAL_ARGUMENT, ''), 
     40  array('--tasks',    '-T', pakeGetopt::OPTIONAL_ARGUMENT, ''), 
    4141); 
    4242$opt = new pakeGetopt($OPTIONS); 
     
    4949    if ($opt == 'version') 
    5050    { 
    51       echo 'symfony version '.SYMFONY_VERSION."\n"; 
     51      $version = SYMFONY_VERSION == '@'.'SYMFONY-VERSION'.'@' ? 'DEV' : SYMFONY_VERSION; 
     52      echo sprintf('symfony version %s', pakeColor::colorize($version, 'INFO'))."\n"; 
    5253      exit(0); 
    5354    }