|
@@ -159,11 +159,9 @@ function filedirCopy(string $sourcePath, string $targetPath){
|
|
|
//替换文件中的宏变量
|
|
|
function replaceMacro(string $filePath,string $targetPath,array $macros){
|
|
|
$content = file_get_contents($filePath);
|
|
|
- print($content.PHP_EOL);
|
|
|
foreach($macros as $key=>$value){
|
|
|
$content = str_replace($key,$value,$content);
|
|
|
}
|
|
|
- print($content.PHP_EOL);
|
|
|
return file_put_contents($targetPath,$content);
|
|
|
}
|
|
|
|