modified gallery.bash to compile recursively
This commit is contained in:
parent
aa9a082ba5
commit
a929f506ac
10
gallery.bash
Normal file → Executable file
10
gallery.bash
Normal file → Executable file
@ -16,7 +16,7 @@ cnt="$#"
|
|||||||
i=1
|
i=1
|
||||||
for f
|
for f
|
||||||
do
|
do
|
||||||
f2="${f/typ/png}"
|
f2="${f%.typ}.png"
|
||||||
echo "($i/$cnt) $f -> $f2"
|
echo "($i/$cnt) $f -> $f2"
|
||||||
typst c --root ./ "$f" "$f2"
|
typst c --root ./ "$f" "$f2"
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
@ -27,12 +27,12 @@ then
|
|||||||
echo
|
echo
|
||||||
echo "Generating gallery PDFs"
|
echo "Generating gallery PDFs"
|
||||||
|
|
||||||
set -- ./gallery/*.typ
|
files=$(find ./gallery -type f -name "*.typ")
|
||||||
cnt="$#"
|
cnt=$(echo "$files" | wc -l)
|
||||||
i=1
|
i=1
|
||||||
for f
|
for f in $files
|
||||||
do
|
do
|
||||||
f2="${f/typ/pdf}"
|
f2="${f%.typ}.pdf"
|
||||||
echo "($i/$cnt) $f -> $f2"
|
echo "($i/$cnt) $f -> $f2"
|
||||||
typst c --root ./ "$f" "$f2"
|
typst c --root ./ "$f" "$f2"
|
||||||
i=$((i+1))
|
i=$((i+1))
|
||||||
|
Loading…
Reference in New Issue
Block a user