mirror of https://github.com/hauke68/Magallanes
Andrés Montañez
12 years ago
2 changed files with 62 additions and 17 deletions
@ -1,9 +1,19 @@ |
|||||||
#!/bin/sh |
#!/usr/bin/env php |
||||||
#VERSION:0.9.14 |
<?php |
||||||
|
date_default_timezone_set('UTC'); |
||||||
|
|
||||||
SCRIPT=$(readlink -f $0) |
$baseDir = dirname(dirname(__FILE__)); |
||||||
DIR=$(dirname $SCRIPT) |
|
||||||
PHP_BIN=$(which php) |
|
||||||
|
|
||||||
$PHP_BIN -d safe_mode=Off -f $DIR/mage.php -- $@ |
define('MAGALLANES_VERSION', '0.9.14'); |
||||||
|
|
||||||
|
// Preload |
||||||
|
require_once $baseDir . '/Mage/spyc.php'; |
||||||
|
require_once $baseDir . '/Mage/Autoload.php'; |
||||||
|
spl_autoload_register(array('Mage_Autoload', 'autoload')); |
||||||
|
|
||||||
|
// Clean arguments |
||||||
|
array_shift($argv); |
||||||
|
|
||||||
|
// Run Magallanes |
||||||
|
$console = new Mage_Console; |
||||||
|
$console->run($argv); |
||||||
|
Loading…
Reference in new issue