~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to Unicode/gen-ent

  • Committer: Bazaar Package Importer
  • Author(s): Peter Gervai
  • Date: 2004-01-21 22:13:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040121221345-ju33hai1yhhqt6kn
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
echo
 
3
echo Generating entity table.
 
4
(
 
5
cat entities.lnx | grep '^[     ]*{"' | sort >tmp
 
6
N=`cat tmp | wc -l`
 
7
echo '/* Automatically generated by gen-ent */'
 
8
echo
 
9
echo 'struct { char *s; unicode_val c; } entities ['`expr $N + 1`'] = {'
 
10
cat tmp
 
11
echo '  {NULL,  0}'
 
12
echo '};'
 
13
echo
 
14
echo '#define N_ENTITIES' $N
 
15
) > ../src/intl/entity.inc
 
16
rm -f tmp
 
17
echo Done.
 
18
echo