mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
07dab0c385
2000-06-25 Ulrich Drepper <drepper@redhat.com> * locale/programs/ld-collate.c: Correct handling of different collation sections. * locale/programs/localedef.c (add_to_readlist): Take locale pointer as extra parameter from which to copy category information. Change all callers. (load_locale): Likewise. * locale/programs/localedef.h: Update prototypes of add_to_readlist and load_locale. * locale/programs/ld-ctype.c: Update call to add_to_readlist. * locale/programs/locfile.h: Likewise. * locale/programs/locfile-kw.gperf: Add entry for script. * locale/programs/locfile-token.h: Add tok_script. * locale/programs/locale.c: Update copyright year. * locale/programs/localedef.c: Likewise. * xdr_rec.c (set_input_fragment): Fix PR libc/1549, patch from Jens
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#! /bin/sh
|
|
|
|
common_objpfx=$1; shift
|
|
lang=$*
|
|
|
|
id=${PPID:-100}
|
|
here=`pwd`
|
|
|
|
# Generate data files.
|
|
for l in $lang; do
|
|
cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
|
|
cn=locales/$cns
|
|
fn=charmaps/`echo $l | sed 's/.*[.]\([^.]*\)/\1/'`
|
|
I18NPATH=. GCONV_PATH=${common_objpfx}/iconvdata \
|
|
${common_objpfx}elf/ld.so --library-path $common_objpfx \
|
|
${common_objpfx}locale/localedef --quiet -i $cn -f $fn \
|
|
${common_objpfx}localedata/$cns
|
|
done
|
|
|
|
# Run collation tests.
|
|
status=0
|
|
for l in $lang; do
|
|
cns=`echo $l | sed 's/\(.*\)[.][^.]*/\1/'`
|
|
LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
|
|
LC_ALL=$cns ${common_objpfx}elf/ld.so --library-path $common_objpfx \
|
|
${common_objpfx}localedata/collate-test $id < $cns.in \
|
|
> ${common_objpfx}localedata/$cns.out || status=1
|
|
cmp -s $cns.in ${common_objpfx}localedata/$cns.out || status=1
|
|
|
|
LOCPATH=${common_objpfx}localedata GCONV_PATH=${common_objpfx}/iconvdata \
|
|
LC_ALL=$cns ${common_objpfx}elf/ld.so --library-path $common_objpfx \
|
|
${common_objpfx}localedata/xfrm-test $id < $cns.in \
|
|
> ${common_objpfx}localedata/$cns.xout || status=1
|
|
cmp -s $cns.in ${common_objpfx}localedata/$cns.xout || status=1
|
|
done
|
|
|
|
exit $status
|
|
# Local Variables:
|
|
# mode:shell-script
|
|
# End:
|