From 59cd4f309a241cb2fa425519a43215bd5e81a4cf Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 6 Mar 2014 17:17:55 +0100 Subject: [PATCH] phing build file to create a standalone phar package --- .gitignore | 1 + build.xml | 69 +++++++++++++++++++++++++++++++++++++++++++++++ src/phar-stub.php | 2 +- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 build.xml diff --git a/.gitignore b/.gitignore index b76dc57..31b728f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /data/bdrem.config.php /dist/ /lib +/bin/phar-bdrem.php diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..7118df2 --- /dev/null +++ b/build.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/phar-stub.php b/src/phar-stub.php index 326b5cf..58ee78e 100644 --- a/src/phar-stub.php +++ b/src/phar-stub.php @@ -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) { -- 2.30.2