projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38fef66
)
JsCompile.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Aug 2011 02:47:46 +0000
(10:47 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 17 Aug 2011 02:47:46 +0000
(10:47 +0800)
JsCompile.php
patch
|
blob
|
history
diff --git
a/JsCompile.php
b/JsCompile.php
index
6a58b86
..
3268e78
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-74,7
+74,7
@@
class Pman_Core_JsCompile extends Pman
* @param {Array} list of files (ontop of basedir)
* @param {String} output url (path to basedir basically), or false
* to not compile
* @param {Array} list of files (ontop of basedir)
* @param {String} output url (path to basedir basically), or false
* to not compile
- *
+ *
*
*/
*
*/
@@
-251,7
+251,9
@@
class Pman_Core_JsCompile extends Pman
if (!file_exists(dirname($output))) {
mkdir(dirname($output), 0755, true);
}
if (!file_exists(dirname($output))) {
mkdir(dirname($output), 0755, true);
}
- sort($ofiles);
+ $lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
+ usort($ofiles, $lsort);
+
$eoutput = escapeshellarg($output);
$cmd = "$seed {$o['jspacker']}/pack.js -o $eoutput " . implode($ofiles, ' ') . ' 2>&1';
//echo "<PRE>$cmd\n";
$eoutput = escapeshellarg($output);
$cmd = "$seed {$o['jspacker']}/pack.js -o $eoutput " . implode($ofiles, ' ') . ' 2>&1';
//echo "<PRE>$cmd\n";