Also install comp.dat, and fixed a bug in create_comps()

This commit is contained in:
Stig Venaas 2001-01-18 18:10:11 +00:00
parent 3f0905a529
commit 3621d2a329
2 changed files with 2 additions and 1 deletions

View file

@ -23,7 +23,7 @@ ucgendat: $(LIBRARY) ucgendat.o
$(LTLINK) -o $@ ucgendat.o $(LIBS)
./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
DATFILES = case.dat cmbcl.dat ctype.dat decomp.dat num.dat
DATFILES = case.dat cmbcl.dat comp.dat ctype.dat decomp.dat num.dat
install-local: $(PROGRAMS) FORCE
-$(MKDIR) $(DESTDIR)$(datadir)/ucdata

View file

@ -1159,6 +1159,7 @@ create_comps(void)
comps[cu].code2 = decomps[i].decomp[1];
cu++;
}
comps_used = cu;
qsort(comps, comps_used, sizeof(_comp_t),
(int (*)(const void *, const void *)) cmpcomps);
}