$cwd = getcwd();
-if (array_pop(explode('/', $cwd)) !== 'roojs1') {
+$cc = explode('/', $cwd);
+if (array_pop($cc) !== 'roojs1') {
echo "this should be run in roojs1 directory...\n";
exit;
}
'sourceMapRootpath' => '../less/bootstrap/',
'variables' => array("@import 'variables.less';")
),
+ "{$rootDir}/roojs1/less/bootstrap/bootstrap-light.less" => array(
+ 'baseDir' => "{$rootDir}/roojs1/css-bootstrap",
+ 'name' => 'bootstrap-light.css',
+ 'minify' => 'bootstrap-light.min.css',
+ 'sourceMapRootpath' => '../less/bootstrap/',
+ 'variables' => array("@import 'variables.less';")
+ ),
+
"{$rootDir}/roojs1/less/roojs-bootstrap/roojs-bootstrap.less" => array(
'baseDir' => "{$rootDir}/roojs1/css-bootstrap",
'name' => 'roojs-bootstrap-debug.css',
continue;
}
- $is_up_to_date = true;
+ $isLatest = true;
foreach(scandir($dir) as $f) {
$less = "{$dir}{$f}";
if(filemtime($less) > filemtime($css)){
- $is_up_to_date = false;
+ $isLatest = false;
break;
}
}
- if($is_up_to_date){
+ if($isLatest){
echo "{$css} already up-to-date \n";
unset($files[$src]);
}