summaryrefslogtreecommitdiff
path: root/scripts/runcmapdump.sh
blob: ae73add9686fcacd13587f56a5473d4349343f24 (plain)
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\""
	python 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 "};"