From 974959a59b7e857ba72772f23ee4d2540195378c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 10 Dec 2005 18:06:51 +0000 Subject: Moved JavaScript build script to tools directory. Modified JavaScript build script to reflect the above path changing. Added Prado Script build script that merges core script files into one to save script inclusion time for Prado applications. --- tools/phpbuilder/build.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++ tools/phpbuilder/files.txt | 25 +++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 tools/phpbuilder/build.php create mode 100644 tools/phpbuilder/files.txt (limited to 'tools/phpbuilder') diff --git a/tools/phpbuilder/build.php b/tools/phpbuilder/build.php new file mode 100644 index 00000000..a96ab12f --- /dev/null +++ b/tools/phpbuilder/build.php @@ -0,0 +1,55 @@ +#!/usr/bin/php + + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Revision: $ $Date: $ + * @package Tools + */ + +/** + * The merged file name + */ +define('OUTPUT_FILE','pradolite.php'); +/** + * The framework directory + */ +define('FRAMEWORK_DIR',realpath(dirname(__FILE__).'/../../framework')); +/** + * The file containing script list to be built + */ +define('SCRIPT_FILES',dirname(__FILE__).'/files.txt'); + +if(FRAMEWORK_DIR===false) + die('Unable to determine the installation directory of Prado Framework.'); +if(!is_file(SCRIPT_FILES)) + die('Unable to read '.SCRIPT_FILES.'.'); + +$output=''; + +$lines=file(SCRIPT_FILES); +foreach($lines as $line) +{ + $line=trim($line); + if($line==='') + continue; + echo 'adding '.FRAMEWORK_DIR.'/'.$line."\n"; + $input=file_get_contents(FRAMEWORK_DIR.'/'.$line); + $input=strtr($input,"\r",''); + $input=preg_replace('/\/\*.*?\*\//s','',$input); + $input=preg_replace('/^Prado::using\([^\*]*?\);/m','',$input); + $input=preg_replace('/^(require|require_once)\s*\(.*?;/m','',$input); + $input=preg_replace('/^(include|include_once)\s*\(.*?;/m','',$input); + $output.=$input; +} + +file_put_contents(FRAMEWORK_DIR.'/'.OUTPUT_FILE,$output); + +?> \ No newline at end of file diff --git a/tools/phpbuilder/files.txt b/tools/phpbuilder/files.txt new file mode 100644 index 00000000..22218685 --- /dev/null +++ b/tools/phpbuilder/files.txt @@ -0,0 +1,25 @@ +TComponent.php +Exceptions/TException.php +Collections/TList.php +Collections/TMap.php +Data/TXmlDocument.php +Web/THttpUtility.php +core.php +prado.php +TApplication.php +Exceptions/TErrorHandler.php +Web/THttpRequest.php +Web/THttpResponse.php +Web/THttpSession.php +Security/TAuthorizationRule.php +Web/Services/TPageService.php +Web/UI/TTemplateManager.php +Web/UI/TThemeManager.php +Web/UI/TAssetManager.php +Web/UI/THiddenFieldPageStatePersister.php +Web/UI/TControl.php +Web/UI/TTemplateControl.php +Web/UI/TForm.php +Web/UI/TClientScriptManager.php +Web/UI/THtmlWriter.php +Web/UI/TPage.php \ No newline at end of file -- cgit v1.2.3