File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 6363 run : |
6464 git config --global --add safe.directory "$GITHUB_WORKSPACE"
6565 mkdir -p .git/refs/heads
66- [[ -f ".git/refs/heads/master.tex" ]] || date >".git/refs/heads/master.tex"
67- ./xmScripts/add_xbb.sh *
66+ [ -f ".git/refs/heads/master.tex" ] || date >".git/refs/heads/master.tex"
67+ echo "Add .xbb"
68+ ./xmScripts/add_xbb.sh linesAndCurvesInSpace
6869 # xmlatex bake --compile pdfexport -j 5 $XM_TO_PROCESS
6970 xmlatex bake --compile htmlexport -j 5 $XM_TO_PROCESS
7071
Original file line number Diff line number Diff line change @@ -14,8 +14,21 @@ if ! command -v ebb >/dev/null 2>&1; then
1414fi
1515
1616# Find all .svg files in subfolders and process them if .xbb is missing
17- find " $FOLDER " -type f -name " *.png" | while read -r svgfile; do
18- xbbfile=" ${svgfile% .png} .xbb"
17+ find " $FOLDER " -type f -name " *.svg" ! -name " *x.svg" | while read -r svgfile; do
18+ xbbfile=" ${svgfile% .svg} .xbb"
19+ pngfile=" ${svgfile% .svg} .png"
20+ pdffile=" ${svgfile% .svg} .pdf"
21+ if [ ! -f " $pdffile " ]; then
22+ echo " Missing PDF file for $svgfile "
23+ continue
24+ fi
25+ if [ ! -f " $pngfile " ]; then
26+ echo " Generating: $pngfile "
27+ mutool draw -r 150 -c rgbalpha -o " $pngfile " " $pdffile "
28+ ebb -x " $svgfile "
29+ # else
30+ # echo "Skipping (exists): $xbbfile"
31+ fi
1932 if [ ! -f " $xbbfile " ]; then
2033 echo " Generating: $xbbfile "
2134 ebb -x " $svgfile "
You can’t perform that action at this time.
0 commit comments