Special XML conversion code for Firefox >= 20.0
[infodrom/rico3] / minsrc / rico3Min.bat
1 @echo off\r
2 \r
3 rem *************************************************************************************\r
4 rem Windows batch script to compress most of the Rico library using the YUI compressor\r
5 rem Rico is Copyright 2005-2011 by Matt Brown and Richard Cowin\r
6 rem For details, see the Rico web site at http://sourceforge.net/projects/openrico/\r
7 rem *************************************************************************************\r
8 \r
9 set dest=..\ricoClient\js\r
10 \r
11 if exist yuicompressor-2.4.6.jar goto compress\r
12 echo This script requires Java and the YUI compressor\r
13 echo yuicompressor-2.4.6.jar should be placed in this directory before running the script.\r
14 echo Download it from http://developer.yahoo.com/yui/compressor/\r
15 goto done\r
16 \r
17 rem *** Compress Javascript ***\r
18 :compress\r
19 \r
20 type rico.js >all.js\r
21 \r
22 type ricoUI.js >>all.js\r
23 type ricoCalendar.js >>all.js\r
24 type ricoColorPicker.js >>all.js\r
25 type ricoDragDrop.js >>all.js\r
26 type ricoSearch.js >>all.js\r
27 type ricoTree.js >>all.js\r
28 \r
29 type ricoGridCommon.js >>all.js\r
30 type ricoSimpleGrid.js >>all.js\r
31 type ricoLiveGrid.js >>all.js\r
32 type ricoLiveGridControls.js >>all.js\r
33 type ricoLiveGridMenu.js >>all.js\r
34 type ricoLiveGridAjax.js >>all.js\r
35 type ricoLiveGridForms.js >>all.js\r
36 \r
37 type ricoLocale_en.js >>all.js\r
38 \r
39 rem Without line breaks = smallest file\r
40 rem java -jar yuicompressor-2.4.6.jar -o %dest%\rico_min.js all.js\r
41 \r
42 rem With line breaks = slightly larger file, easier to debug\r
43 java -jar yuicompressor-2.4.6.jar --line-break 0 -o %dest%\rico_min.js all.js\r
44 \r
45 :done\r
46 pause\r