<?php $path = realpath(dirname(__FILE__) . '/../'); set_include_path($path . PATH_SEPARATOR . get_include_path()); //Return loader instance. require_once $path . '/Phrekyll/Autoloader.php'; return Phrekyll\Autoloader::getInstance();
#!/usr/bin/env php <?php $base = dirname(__FILE__) . '/../'; if (strpos('@PHP-BIN@', '@PHP-BIN') === 0) { // stand-alone version is running set_include_path($base . PATH_SEPARATOR . get_include_path()); } require_once $base . '/app/bootstrap.php'; $loader = Phrekyll\Autoloader::getInstance(); $runner = new Phrekyll\Runner\CommandLine($loader); $runner->run(); unset($runner, $loader);