Dropped modules, spruced up Dynamic class
Dropped the bootstrap submodules since the bootstrap is moving out of this project again. Also dropped LESS, relying on an installed copy (similar to SASS)
This commit is contained in:
parent
e70dccafd7
commit
465976818c
9 changed files with 25 additions and 26 deletions
|
@ -170,14 +170,23 @@ class Dynamic extends Object
|
|||
|
||||
if ($less)
|
||||
{
|
||||
$command = 'export PATH=$PATH:/usr/local/bin; ' . PICKLES_PATH . 'vendors/cloudhead/less.js/bin/lessc ' . $original_filename . ' > ' . $compiled_filename;
|
||||
// I couldn't get getenv() to give me the PATH value... so yeah, there's that.
|
||||
exec('echo $PATH', $path);
|
||||
putenv('PATH=' . $path[0] . PATH_SEPARATOR . '/usr/local/bin');
|
||||
|
||||
$command = 'lessc ' . $original_filename . ' > ' . $compiled_filename;
|
||||
}
|
||||
elseif ($sass)
|
||||
{
|
||||
$command = 'sass ' . $original_filename . ':' . $compiled_filename;
|
||||
}
|
||||
|
||||
exec($command);
|
||||
exec($command, $output, $return);
|
||||
|
||||
if ($return !== 0)
|
||||
{
|
||||
throw new Exception('There was an error executing `' . $command . '` it returned exit code ' . $return);
|
||||
}
|
||||
|
||||
$original_filename = $compiled_filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue