return false;
}
- $o = HTML_FlexyFramework::get()->Pman_Core;
- if (isset($o['packseed'])) {
- return $this->packSeed($files,$output,$translation_base);
- }
+ // if packer is running, then dont compile - just output onebyone...
require_once 'System.php';
return true;
}
+
+
+ $pg = System::which('pgrep');
+ if ($pg == '') {
+ echo '<!-- install pgrep -->';
+ return false;
+ }
+
+ $cmd = "$pg roojspacker";
+ $res = `$cmd`;
+ $out = empty($res) ? '' : trim($res);
+ if (strlen($out) > 0) {
+ echo '<!-- onther process is compiling compile. -->';
+ return false;
+ }
+
+
if (file_exists($output)) {
unlink($output);
}
}
+
+ function packIsRunning()
+ {
+ require_once 'System.php';
+
+
+ }
+
+
// depricated verison using seed.
function packSeed($files, $output, $translation_base=false)
{