Remove manual phar building scripts
[bdrem.git] / src / phar-stub.php
index 3c801301fceef945c1e5f269ddabae75e86db0d5..58ee78e58868ec25e3e5890d5d5b4d1ad6c7033d 100644 (file)
@@ -5,7 +5,7 @@ if (!in_array('phar', stream_get_wrappers()) || !class_exists('Phar', false)) {
 }
 
 $web = 'www/index.php';
-$cli = 'bin/bdrem.php';
+$cli = 'bin/phar-bdrem.php';
 
 function rewritePath($path)
 {
@@ -16,7 +16,10 @@ function rewritePath($path)
 }
 
 //Phar::interceptFileFuncs();
-set_include_path('phar://' . __FILE__ . PATH_SEPARATOR . get_include_path());
+set_include_path(
+    'phar://' . __FILE__
+    . PATH_SEPARATOR . 'phar://' . __FILE__ . '/lib/'
+);
 Phar::webPhar(null, $web, null, array(), 'rewritePath');
 include 'phar://' . __FILE__ . '/' . $cli;
 __HALT_COMPILER();