Update buildreadme.php

This commit is contained in:
MatMasIt 2021-07-14 15:14:07 +02:00 committed by GitHub
parent 54f90d1aa1
commit b15e7f46fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<?php <?php
$source=file_get_contents("../Alembic.tex"); $source=file_get_contents("Alembic.tex");
$matches=[]; $matches=[];
preg_match_all('/ preg_match_all('/
(?| # two alternatives whose group numbers both begin at 1 (?| # two alternatives whose group numbers both begin at 1
@ -17,7 +17,7 @@ preg_match_all('/
); );
$poems=$matches[1]; $poems=$matches[1];
$endB=""; $endB="";
$f=file("../README.md"); $f=file("README.md");
$writeStuff=true; $writeStuff=true;
foreach($f as $line){ foreach($f as $line){
if(trim($line)=="<!-- BEGIN POEMLIST -->"){ if(trim($line)=="<!-- BEGIN POEMLIST -->"){