File: runcmapdump.sh

package info (click to toggle)
mupdf 1.25.1%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 21,620 kB
  • sloc: ansic: 270,929; python: 20,709; java: 6,916; javascript: 1,865; makefile: 1,130; xml: 550; sh: 430; cpp: 325; cs: 313; awk: 10; sed: 7; lisp: 3
file content (20 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

LIST=$(echo resources/cmaps/* | sort)

for f in $LIST
do
	b=$(basename $f)
	echo "#include \"cmaps/$b.h\""
	python3 scripts/cmapdump.py > source/pdf/cmaps/$b.h $f
done


echo "static pdf_cmap *table[] = {"
for f in $LIST
do
	b=$(basename $f)
	c=$(echo $b | tr - _)
	echo "&cmap_$c,"
done
echo "};"