blob: 9e399edc0c294107bd162be441f73f7089676862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?php
require_once __DIR__ . '/../vendor/autoload.php';
$parser = new \SmartyGenerator\ParserGenerator();
$parser->setQuiet();
$parser->main($argv[1], $argv[2]);
$content = file_get_contents($argv[2]);
$content = preg_replace(array('#/\*\s*\d+\s*\*/#', "#'lhs'#", "#'rhs'#"), array('', 0, 1), $content);
file_put_contents($argv[2], $content);
|