Changeset 905 for trunk/contrib/compress.php
- Timestamp:
- 10/15/07 23:08:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contrib/compress.php
r823 r905 28 28 $url = $durl . '/' . $file; 29 29 30 if(preg_match("/ .svn|lang/",$path)) continue;30 if(preg_match("/\.svn|lang/",$path)) continue; 31 31 32 32 if(is_dir($path)) … … 49 49 $cwd = getcwd(); 50 50 print "Processing ".count($return)." files<br />"; 51 52 $prefix = "/* This compressed file is part of Xinha. For uncomressed sources, forum, and bug reports, go to xinha.org */"; 53 $core_prefix = ' 54 /*-------------------------------------------------------------------------- 55 -- Xinha (is not htmlArea) - http://xinha.org 56 -- 57 -- Use of Xinha is granted by the terms of the htmlArea License (based on 58 -- BSD license) please read license.txt in this package for details. 59 -- 60 -- Copyright (c) 2005-2007 Xinha Developer Team and contributors 61 -- 62 -- Xinha was originally based on work by Mihai Bazon which is: 63 -- Copyright (c) 2003-2004 dynarch.com. 64 -- Copyright (c) 2002-2003 interactivetools.com, inc. 65 -- This copyright notice MUST stay intact for use. 66 -------------------------------------------------------------------------*/ 67 '; 51 68 foreach ($return as $file) 52 69 { … … 55 72 flush(); 56 73 copy($file,$file."_uncompr.js"); 57 exec("java -jar ${cwd}/dojo_js_compressor.jar -c ${file}_uncompr.js > $file 2>&1"); 74 75 exec("echo \"".(preg_match('/XinhaCore.js$/',$file) ? $prefix.$core_prefix : $prefix)."\" > $file && java -jar ${cwd}/dojo_js_compressor.jar -c ${file}_uncompr.js >> $file 2>&1"); 58 76 if (preg_match('/js: ".*?", line \d+:/',file_get_contents($file))) 59 77 {
Note: See TracChangeset
for help on using the changeset viewer.