sync
[roojs1] / buildSDK / less-bootstrap-compiler.php
index b1a18c0..cbbe230 100644 (file)
@@ -2,7 +2,8 @@
 
 $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;
 }
@@ -48,7 +49,7 @@ foreach ($files as $src => $file){
         continue;
     }
     
-    $is_up_to_date = true;
+    $isLatest = true;
     
     foreach(scandir($dir) as $f) {
                 
@@ -59,12 +60,12 @@ foreach ($files as $src => $file){
         $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]);
     }