partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0a2e6e8511c39d346f2142a7a4eba815894a5088
parent 7d914c88769db37b0732890270a69fa22860c729
Author: Felicitus <felicitus@felicitus.org>
Date:   Wed, 15 Jun 2011 15:20:08 +0800

Externalized debug flag, added release target for build script

Diffstat:
Mbuild.xml | 6++++++
Afrontend/config-release.php | 3+++
Afrontend/config.php | 2++
Mfrontend/index.php | 2+-
4 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/build.xml b/build.xml @@ -75,6 +75,12 @@ </target> + <target name="release"> + <phingcall target="build"/> + <copy overwrite="true" file="build/config-release.php" tofile="build/config.php"/> + </target> + + <!-- Builds the jsb3 file and build the minified JS files --> <target name="jsbuilder"> <exec command="php util/gen-jsb3-file.php ./frontend/ ${extjs.path}"/> diff --git a/frontend/config-release.php b/frontend/config-release.php @@ -0,0 +1,2 @@ +<?php +$debug = false;+ \ No newline at end of file diff --git a/frontend/config.php b/frontend/config.php @@ -0,0 +1,2 @@ +<?php +$debug = true; diff --git a/frontend/index.php b/frontend/index.php @@ -1,5 +1,5 @@ <?php -$debug = true; +include("config.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">