Rename files

master
Vitaliy Filippov 2018-09-13 02:32:00 +03:00
parent e8c9cad6f6
commit 56ef120056
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@
*
* The template engine is split into two parts:
* (1) This file - always used when running templates
* (2) template.parser.php - used only when compiling new templates
* (2) VMXTemplateCompiler.php - used only when compiling new templates
*/
/**
@ -466,7 +466,7 @@ class VMXTemplate
self::filter_strip_space($code);
if (!$this->compiler)
{
require_once(dirname(__FILE__).'/template.parser.php');
require_once(dirname(__FILE__).'/VMXTemplateCompiler.php');
$this->compiler = new VMXTemplateCompiler($this->options);
}
$compiled = $this->compiler->parse_all($code, $fn, $func_ns);

View File

@ -5,10 +5,10 @@ if [ "$LIME_DIR" = "" ]; then
fi
php -d xdebug.max_nesting_level=200 $LIME_DIR/lime.php template.lime | tail -n +2 > template.class
LINES=`grep -n -h " \*\*\* DON'T EDIT THIS FILE! \*\*\*" template.parser.php | perl -pe 's/(\d+):.*/$1-2/e'`
LINES=`grep -n -h " \*\*\* DON'T EDIT THIS FILE! \*\*\*" VMXTemplateCompiler.php | perl -pe 's/(\d+):.*/$1-2/e'`
if [ "$LINES" != "" ]; then
head -n $LINES template.parser.php | cat - template.class > template.parser.php.new
head -n $LINES VMXTemplateCompiler.php | cat - template.class > VMXTemplateCompiler.php.new
else
cat template.parser.php template.class > template.parser.php.new
cat VMXTemplateCompiler.php template.class > VMXTemplateCompiler.php.new
fi
mv template.parser.php.new template.parser.php
mv VMXTemplateCompiler.php.new VMXTemplateCompiler.php