add convenience script

This commit is contained in:
Florian Stecker 2022-06-12 13:22:40 +02:00
parent 920f4b568b
commit 040f994d6f

12
maketiling.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
filename="output/tiling_$1$2$3"
for i in $(seq 5 $#); do filename+="_${!i}"; done
filename_svg="${filename}.svg"
filename_pdf="${filename}.pdf"
if [ $# -lt 4 ]; then
./hyperbolic
else
./hyperbolic $* > "$filename_svg" && rsvg-convert --format=pdf "$filename_svg" > "$filename_pdf"
fi