Development

Changeset 1793

You must first sign up to be able to contribute.

Changeset 1793

Show
Ignore:
Timestamp:
08/23/06 23:26:47 (2 years ago)
Author:
fabien
Message:

updated symfony.php command line tool to take advantage of the new pake tool

Files:

Legend:

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

    r1785 r1793  
    1717  define('PAKEFILE_DATA_DIR', 'data/symfony'); 
    1818} 
    19 else 
     19elseif (is_readable($pear_lib_dir)) 
    2020{ 
    2121  define('PAKEFILE_LIB_DIR',  '@PEAR-DIR@/symfony'); 
    2222  define('PAKEFILE_DATA_DIR', '@DATA-DIR@/symfony'); 
     23} 
     24else 
     25{ 
     26  define('PAKEFILE_LIB_DIR',  realpath(dirname(__FILE__).'/../../lib')); 
     27  define('PAKEFILE_DATA_DIR', realpath(dirname(__FILE__).'/..')); 
    2328} 
    2429 
     
    5156catch (pakeException $e) 
    5257{ 
    53   print $e->getMessage(); 
    5458} 
    5559 
    5660$pake = pakeApp::get_instance(); 
    57 try 
    58 
    59   $pake->run($pakefile); 
    60 
    61 catch (Exception $e) 
    62 
    63   echo "ERROR: symfony - ".$e->getMessage()."\n"; 
    64 
     61$pake->run($pakefile);