JsCompile.php
[Pman.Core] / JsCompile.php
index 8794e74..80a62e1 100644 (file)
@@ -190,8 +190,8 @@ class Pman_Core_JsCompile  extends Pman
         $seed= System::which('seed');
         $gjs = System::which('gjs');
         
-        if (!$seed) {
-            echo '<!-- seed not installed -->';
+        if (!$seed && !$gjs) {
+            echo '<!-- seed or gjs are  not installed -->';
             return false;
             
         }
@@ -209,7 +209,10 @@ class Pman_Core_JsCompile  extends Pman
             mkdir(dirname($output), 0755, true);
         }
         $eoutput = escapeshellarg($output);
-        $cmd = "$seed {$o['cssminify']}  $eoutput " . implode($ofiles, ' ');
+        $cmd = $seed ?
+            ("$seed {$o['cssminify']}  $eoutput " . implode($ofiles, ' ')) :
+            ("$gjs {$o['cssminify']}  $eoutput " . implode($ofiles, ' ')) :
+            ;
         //echo "<PRE>$cmd\n"; echo `$cmd`; exit;
         `$cmd`;