File: runcmapdump.sh

package info (click to toggle)
mupdf 1.17.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 64,012 kB
  • sloc: ansic: 322,239; java: 3,042; javascript: 1,243; python: 775; xml: 498; makefile: 438; sh: 312; awk: 6; sed: 5; 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 "};"