JsCompile.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 08:00:01 +0000 (16:00 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 22 Jul 2011 08:00:01 +0000 (16:00 +0800)
JsCompile.php

index 5b5885e..3af7788 100644 (file)
@@ -138,7 +138,9 @@ class Pman_Core_JsCompile  extends Pman
         if ($max < $targetm)  {
             return true;
         }
-        
+        if (!file_exists(dirname($output))) {
+            mkdir(dirname($output), 0755, true);
+        }
         $eoutput = escapeshellarg($output);
         $cmd = "$seed {$o['jspacker']}/pack.js  -o $eoutput " . implode($ofiles, ' ');
         echo "$cmd\n";