projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only run one version of packer at a time
[Pman.Core]
/
JsCompile.php
diff --git
a/JsCompile.php
b/JsCompile.php
index
c53bf6c
..
71d6ba7
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-228,9
+228,19
@@
class Pman_Core_JsCompile extends Pman
return false;
}
return false;
}
-
+ // if packer is running, then dont compile - just output onebyone...
require_once 'System.php';
require_once 'System.php';
+ $pg = System::which('pgrep');
+ $cmd = "$pg roobuilder";
+ $out = trim(`$cmd`);
+ if (strlen($out) > 0) {
+ return false;
+ }
+
+
+
+
$packer = System::which('roojspacker');
$packer = System::which('roojspacker');
@@
-306,6
+316,15
@@
class Pman_Core_JsCompile extends Pman
}
}
+
+ function packIsRunning()
+ {
+ require_once 'System.php';
+
+
+ }
+
+
// depricated verison using seed.
function packSeed($files, $output, $translation_base=false)
{
// depricated verison using seed.
function packSeed($files, $output, $translation_base=false)
{