Skip to content

Commit

Permalink
Updated other scripts to make use of the $libPath and environment var…
Browse files Browse the repository at this point in the history
… LIB_PATH as updated in the classmap generator.
  • Loading branch information
BinaryKitten committed Feb 12, 2012
1 parent 00fb863 commit 7102485
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/docbook_skeleton.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
Zend\Docbook\SkeletonGenerator,
Zend\Code\Reflection\ClassReflection as ReflectionClass;

$libPath = __DIR__ . '/../library';
$libPath = getenv('LIB_PATH') ? getenv('LIB_PATH') : __DIR__ . '/../library';
if (!is_dir($libPath)) {
// Try to load StandardAutoloader from include_path
if (false === include('Zend/Loader/StandardAutoloader.php')) {
Expand All @@ -49,7 +49,7 @@
}
} else {
// Try to load StandardAutoloader from library
if (false === include(__DIR__ . '/../library/Zend/Loader/StandardAutoloader.php')) {
if (false === include($libPath . '/Zend/Loader/StandardAutoloader.php')) {
echo "Unable to locate autoloader via library; aborting" . PHP_EOL;
exit(2);
}
Expand Down
4 changes: 2 additions & 2 deletions bin/pluginmap_generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* file
*/

$libPath = __DIR__ . '/../library';
$libPath = getenv('LIB_PATH') ? getenv('LIB_PATH') : __DIR__ . '/../library';
if (!is_dir($libPath)) {
// Try to load StandardAutoloader from include_path
if (false === include('Zend/Loader/StandardAutoloader.php')) {
Expand All @@ -42,7 +42,7 @@
}
} else {
// Try to load StandardAutoloader from library
if (false === include(__DIR__ . '/../library/Zend/Loader/StandardAutoloader.php')) {
if (false === include($libPath . '/Zend/Loader/StandardAutoloader.php')) {
echo "Unable to locate autoloader via library; aborting" . PHP_EOL;
exit(2);
}
Expand Down

0 comments on commit 7102485

Please sign in to comment.