diff options
| author | xue <> | 2005-12-10 18:09:28 +0000 | 
|---|---|---|
| committer | xue <> | 2005-12-10 18:09:28 +0000 | 
| commit | c17130154c3b03e79f37509eaf137144cbb03de7 (patch) | |
| tree | ab5338827e0a13f3dc6f30146dd340a5287eb627 | |
| parent | 972d759628dbf23e4d4d234f387fb4a047b7ee0f (diff) | |
Moved build script to tools directory.
| -rw-r--r-- | .gitattributes | 2 | ||||
| -rw-r--r-- | framework/Web/Javascripts/build.php | 144 | ||||
| -rw-r--r-- | framework/Web/Javascripts/custom_rhino.jar | bin | 731885 -> 0 bytes | 
3 files changed, 0 insertions, 146 deletions
| diff --git a/.gitattributes b/.gitattributes index eee58da2..81390ec2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -88,8 +88,6 @@ framework/Web/Javascripts/base/prado.js -text  framework/Web/Javascripts/base/scroll.js -text  framework/Web/Javascripts/base/validation.js -text  framework/Web/Javascripts/base/validators.js -text -framework/Web/Javascripts/build.php -text -framework/Web/Javascripts/custom_rhino.jar -text  framework/Web/Javascripts/effects/controls.js -text  framework/Web/Javascripts/effects/dragdrop.js -text  framework/Web/Javascripts/effects/effects.js -text diff --git a/framework/Web/Javascripts/build.php b/framework/Web/Javascripts/build.php deleted file mode 100644 index 6b21a76d..00000000 --- a/framework/Web/Javascripts/build.php +++ /dev/null @@ -1,144 +0,0 @@ -#!/usr/bin/php
 -<?php
 -/**
 - * Javascript build file.
 - *
 - * This script compresses a list of javascript source files
 - * and merges them into a few for redistribution.
 - *
 - * This script should be run from command line with PHP.
 - * JRE 1.4 or above is required in order to run the js compression program.
 - *
 - * By default, all libraries will be built.
 - * You may, however, specify one or several to be built (to save time during development).
 - * To do so, pass the library names (without .js) as command line arguments.
 - * For example: php build.php base dom
 - *
 - * @author Xiang Wei Zhuo <weizhuo@gmail.com>, Qiang Xue <qiang.xue@gmail.com>
 - * @link http://www.pradosoft.com/
 - * @copyright Copyright © 2005 PradoSoft
 - * @license http://www.pradosoft.com/license/
 - * @version $Revision: $  $Date: $
 - * @package System.Web.UI
 - */
 -
 -/**
 - * The compression command line
 - */
 -define('COMPRESS_COMMAND','java -jar custom_rhino.jar -c %s > %s');
 -/**
 - * The root directory for storing all source js files
 - */
 -define('SOURCE_DIR',dirname(__FILE__));
 -/**
 - * The directory for storing compressed js files
 - */
 -define('TARGET_DIR',dirname(__FILE__).'/js');
 -
 -/**
 - * list of js library files to be compressed and built
 - */
 -$libraries = array(
 -	//base javascript functions
 -	'base.js' => array(
 -		'prototype/prototype.js',
 -		'prototype/compat.js',
 -		'prototype/base.js',
 -		'extended/base.js',
 -		'extended/util.js',
 -		'prototype/string.js',
 -		'extended/string.js',
 -		'prototype/enumerable.js',
 -		'prototype/array.js',
 -		'extended/array.js',
 -		'prototype/hash.js',
 -		'prototype/range.js',
 -		'extended/functional.js',
 -		'base/prado.js',
 -		'base/postback.js',
 -		'base/focus.js',
 -		'base/scroll.js'
 -	),
 -	//dom functions
 -	'dom.js' => array(
 -		'prototype/dom.js',
 -		'extended/dom.js',
 -		'prototype/form.js',
 -		'prototype/event.js',
 -		'extended/event.js',
 -		'prototype/position.js',
 -		'extra/getElementsBySelector.js',
 -		'extra/behaviour.js',
 -		'effects/util.js'
 -	),
 -	//effects
 -	'effects.js' => array(
 -		'effects/effects.js'
 -	),
 -	//controls
 -	'controls.js' => array(
 -		'effects/controls.js',
 -		'effects/dragdrop.js',
 -		'base/controls.js'
 -	),
 -	//logging
 -	'logger.js' => array(
 -		'extra/logger.js',
 -	),
 -	//ajax
 -	'ajax.js' => array(
 -		'prototype/ajax.js',
 -		'base/ajax.js',
 -		'base/json.js'
 -	),
 -	//rico
 -	'rico.js' => array(
 -		'effects/rico.js'
 -	),
 -	//javascript templating
 -	'template.js' => array(
 -		'extra/tp_template.js'
 -	),
 -	//validator
 -	'validator.js' => array(
 -		'base/validation.js',
 -		'base/validators.js'
 -	),
 -	//date picker
 -	'datepicker.js' => array(
 -		'base/datepicker.js'
 -	)
 -);
 -
 -/**
 - * Collect specific libraries to be built from command line
 - */
 -$requestedLibs=array();
 -for($i=1;$i<$argc;++$i)
 -	$requestedLibs[]=$argv[$i].'.js';
 -
 -/**
 - * loop through all target files and build them one by one
 - */
 -foreach($libraries as $libFile => $sourceFiles)
 -{
 -	if(!empty($requestedLibs) && !in_array($libFile,$requestedLibs))
 -		continue;
 -	$libFile=TARGET_DIR.'/'.$libFile;
 -	$contents='';
 -	foreach($sourceFiles as $sourceFile)
 -	{
 -		$sourceFile=SOURCE_DIR.'/'.$sourceFile;
 -		if(!is_file($sourceFile))
 -			echo "Source file not found: $sourceFile\n";
 -		$tempFile=$sourceFile.'.tmp';
 -		$command=sprintf(COMPRESS_COMMAND,$sourceFile,$tempFile);
 -		echo "Compressing $sourceFile\n".
 -		system($command);
 -		$contents.=file_get_contents($tempFile);
 -		@unlink($tempFile);
 -	}
 -	file_put_contents($libFile,$contents);
 -}
 -
 -?>
\ No newline at end of file diff --git a/framework/Web/Javascripts/custom_rhino.jar b/framework/Web/Javascripts/custom_rhino.jarBinary files differ deleted file mode 100644 index 4a97cdeb..00000000 --- a/framework/Web/Javascripts/custom_rhino.jar +++ /dev/null | 
