From 44036c1353569be7f6d028bf278a44e78a1e60c3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 18 Aug 2011 17:11:45 +0800 Subject: [PATCH] JsCompile.php --- JsCompile.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/JsCompile.php b/JsCompile.php index c08a629a..c11e7f65 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -256,18 +256,17 @@ class Pman_Core_JsCompile extends Pman $lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;'); usort($ofiles, $lsort); - $eoutput = " -o " . escapeshellarg($output) . - " -O ". escapeshellarg(preg_replace('/\.js$/', '.__debug__.js', $output)); + $eoutput = " -o " . escapeshellarg($output) ; + - if (false && $translation_base) { + if ( $translation_base) { $toutput = "-t ". escapeshellarg(preg_replace('/\.js$/', '.__translation__.js', $output)) . - " -p " . escapeshellarg($translation_base); + " -p " . escapeshellarg($translation_base) . + " -k "; // this kills the compression. } - // -k == keep white - // -C == keep cached files. - $cmd = "$seed {$o['jspacker']}/pack.js -k $eoutput $toutput " . implode($ofiles, ' ') . ' 2>&1'; + $cmd = "$seed {$o['jspacker']}/pack.js $eoutput $toutput " . implode($ofiles, ' ') . ' 2>&1'; //echo "
$cmd\n";
         //echo `$cmd`;
         
-- 
2.39.2