2013-08-26 02:20:13 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ "$LIME_DIR" = "" ]; then
|
2018-08-03 00:15:08 +03:00
|
|
|
LIME_DIR=./lime/
|
2013-08-26 02:20:13 +04:00
|
|
|
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'`
|
|
|
|
if [ "$LINES" != "" ]; then
|
|
|
|
head -n $LINES template.parser.php | cat - template.class > template.parser.php.new
|
|
|
|
else
|
|
|
|
cat template.parser.php template.class > template.parser.php.new
|
|
|
|
fi
|
|
|
|
mv template.parser.php.new template.parser.php
|