examples with ok times in report makefile

This commit is contained in:
Mylloon 2024-05-18 22:57:05 +02:00
parent 54880e832d
commit cb3b44aa1e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 12 additions and 54 deletions

View file

@ -10,52 +10,6 @@ Le convertisseur est [converter.py](./converter.py).
$ python converter.py l-systems.csv
```
<!--
Pour générer : python converter.py l-systems.csv -o l-systems.xml
Pour valider : xmllint --schema l-systems.xsd l-systems.xml 1>/dev/null
Pour tortue : java -jar saxon-he-10.3.jar -s:l-systems.xml -xsl:tortue.xsl -o:tortue.xml nom=qqch n=10
Pour valider : xmllint --schema tortue.xsd tortue.xml 1>/dev/null
Pour traceur : java -jar saxon-he-10.3.jar -s:tortue.xml -xsl:traceur.xsl -o:traceur.xml
Pour valider : xmllint --schema traceur.xsd traceur.xml 1>/dev/null
Pour SVG : java -jar saxon-he-10.3.jar -s:traceur.xml -xsl:svg.xsl -o:image.svg
Prof :
- snow 5
- koch 2
- koch1 2
- koch2 3
- koch3 3
- koch4 3 <-- bug centre svg
- koch5 4
- dragon 12 <-- bug centre svg
- sierp 7
- gosp6 4
- gosp4 2
- br1 3 <-- buggé
- br2 3 <-- buggé
- br3 3 <-- buggé
- htree 11 <-- buggé
Bonus :
- star 7
- moore 3
- peano 3
- koch8 6
- pyramid 3
- levey 10 <-- bug centre svg
- carpet 4
- square 4
- pentaplexy 3
- triangles 3
- blocks 2
- pentl 3 <-- bug centre svg
-->
Autrement, pour aider à l'utilisation, il est possible d'utiliser le Makefile.
```sh

View file

@ -38,12 +38,16 @@ generate_svg:
# List of Lsystem to generate as pair `name,n`, space separated
@$(CD) ..; $(MAKE) -s generation; \
for pair in \
snow,5 koch,2 koch1,2 koch2,3 koch3,3 koch5,4 sierp,7 gosp6,4 gosp4,2 \
star,7 moore,3 peano,3 koch8,6 pyramid,3 carpet,4 square,4 pentaplexy,3 \
triangles,3 blocks,2; do \
IFS=',' read -r nom n <<< "$$pair"; \
$(MAKE) -s NOCHECK=1 tortue nom=$$nom n=$$n; \
$(MAKE) -s NOCHECK=1 traceur; $(MAKE) -s svg; \
$(MV) image.svg $(REPORT_DIR)/$(IMG_DIR)/$$nom.svg; \
$(ECHO) "'$$nom' generated with $$n iterations."; \
snow,5 koch,2 koch1,2 koch2,3 koch3,3 koch3,3 koch5,4 dragon,12 sierp,7 \
gosp6,4 gosp4,2 br1,3 br2,3 br3,3 htree,11 \
\
star,7 moore,3 peano,3 koch8,6 \
\
pyramid,3 levey,10 carpet,4 square,4 pentaplexy,3 triangles,3 blocks,2 \
pentl,3; do \
IFS=',' read -r nom n <<< "$$pair"; \
$(MAKE) -s NOCHECK=1 tortue nom=$$nom n=$$n; \
$(MAKE) -s NOCHECK=1 traceur; $(MAKE) -s svg; \
$(MV) image.svg $(REPORT_DIR)/$(IMG_DIR)/$$nom.svg; \
$(ECHO) "'$$nom' generated with $$n iterations."; \
done