Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/scripts/runcmapdump.sh @ 3:2c135c81b16c
MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:44:09 +0200 |
| parents | b50eed0cc0ef |
| children |
comparison
equal
deleted
inserted
replaced
| 0:6015a75abc2d | 3:2c135c81b16c |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 LIST=$(echo resources/cmaps/* | sort) | |
| 4 | |
| 5 for f in $LIST | |
| 6 do | |
| 7 b=$(basename $f) | |
| 8 echo "#include \"cmaps/$b.h\"" | |
| 9 python3 scripts/cmapdump.py > source/pdf/cmaps/$b.h $f | |
| 10 done | |
| 11 | |
| 12 | |
| 13 echo "static pdf_cmap *table[] = {" | |
| 14 for f in $LIST | |
| 15 do | |
| 16 b=$(basename $f) | |
| 17 c=$(echo $b | tr - _) | |
| 18 echo "&cmap_$c," | |
| 19 done | |
| 20 echo "};" |
