删掉一些不必要的参数

This commit is contained in:
joyqi 2013-12-13 12:29:26 +08:00
parent 81a99eb923
commit d2ed2217c7
2 changed files with 0 additions and 53 deletions

View File

@ -56,11 +56,6 @@ theme:
make clear
typecho:
for i in `php list.php "build/var/Typecho/"`; do php tc.php "in=$$i&out=build/var/Typecho.php"; done;
rm -Rf build/var/Typecho/
install:
make update
rm -Rf build/tools/
@ -78,16 +73,6 @@ install:
make clear
tinymce:
wget http://prdownloads.sourceforge.net/tinymce/tinymce_${TINYMCE}.zip?download
unzip tinymce_${TINYMCE}.zip
for i in `find tinymce/jscripts/ -name '*.js'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done;
for i in `find tinymce/jscripts/ -name '*.htm'`; do php mcecp.php "in=$$i&out=../usr/plugins/TinyMCE/tiny_mce/$$i"; done;
rm -Rf tinymce/
rm -Rf tinymce_${TINYMCE}.zip
svn ci ../usr/plugins/TinyMCE/tiny_mce/ -m "upgrade tiny_mce to ${TINYMCE}"
all:
make update
make package

View File

@ -1,38 +0,0 @@
<?php
/** 参数不存在则退出 */
if (!isset($argv[1])) {
echo 'no args';
exit(1);
}
/** 解析所有的参数 */
parse_str($argv[1], $options);
/** 必要参数检测 */
if (!isset($options['in']) || !isset($options['out'])) {
echo 'no input or output file';
exit(1);
}
$in = $options['in'];
$out = str_replace('tinymce/jscripts/tiny_mce/', '', $options['out']);
if (file_exists($out)) {
echo $out . "\n";
unlink($out);
copy($in, $out);
switch ($out) {
case '../usr/plugins/TinyMCE/tiny_mce/tiny_mce.js':
file_put_contents($out, str_replace('javascript:;', '#', file_get_contents($out)));
break;
default:
break;
}
}
exit(0);