5 if (array_pop(explode('/', $cwd)) !== 'roojs1') {
6 echo "this should be run in roojs1 directory...\n";
10 ini_set('include_path',
11 dirname(__FILE__) . '/../:' .
12 dirname(__FILE__) . '/../../pear:' .
13 ini_get('include_path')
16 $rootDir = dirname(__FILE__) . '/../..';
19 "{$rootDir}/roojs1/less/bootstrap/bootstrap.less" => array(
20 'directory' => "{$rootDir}/roojs1/css-bootstrap/",
23 "{$rootDir}/roojs1/less/roojs-bootstrap/roojs-bootstrap.less" => array(
24 'directory' => "{$rootDir}/roojs1/css-bootstrap/",
25 'name' => 'roojs-bootstrap'
29 require_once 'HTML/Less.php';
31 $less = new HTML_Less();
33 foreach ($files as $src => $file){
35 if(!file_exists($src)){
36 echo "{$src} does not exist...\n";
42 foreach ($file as $f){
43 echo "Compiling - {$src} To {$f}\n";
45 $less->compileFile($src, $f);
48 } catch (Exception $ex) {
49 echo "lessphp fatal error: {$ex->getMessage()}\n";