mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-29 08:17:18 -04:00
20 lines
374 B
Plaintext
20 lines
374 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
echo
|
||
|
echo Generating entity table.
|
||
|
(
|
||
|
cat entities.lnx | grep '^[ ]*{"' | sort >tmp
|
||
|
N=`cat tmp | wc -l`
|
||
|
echo '/* Automatically generated by gen-ent */'
|
||
|
echo
|
||
|
echo 'struct entity { char *s; unicode_val_T c; } entities ['`expr $N + 1`'] = {'
|
||
|
cat tmp
|
||
|
echo ' {NULL, 0}'
|
||
|
echo '};'
|
||
|
echo
|
||
|
echo '#define N_ENTITIES' $N
|
||
|
) > ../src/intl/entity.inc
|
||
|
rm -f tmp
|
||
|
echo Done.
|
||
|
echo
|