We call $(mkinstalldirs) $(MKINSTALLDIRS)
[elinks/images.git] / Unicode / gen-ent
blob0ed009b3f8938a0ff9677e1f6431cddec6150fd2
1 #!/bin/sh
2 # $Id: gen-ent,v 1.10 2005/03/05 21:49:29 zas Exp $
4 echo
5 echo Generating entity table.
7 cat entities.lnx | grep '^[ ]*{"' | sort >tmp
8 N=`cat tmp | wc -l`
9 echo '/* Automatically generated by gen-ent */'
10 echo
11 echo 'struct entity { char *s; unicode_val_T c; } entities ['`expr $N + 1`'] = {'
12 cat tmp
13 echo ' {NULL, 0}'
14 echo '};'
15 echo
16 echo '#define N_ENTITIES' $N
17 ) > ../src/intl/entity.inc
18 rm -f tmp
19 echo Done.
20 echo