1#!/bin/sh 2 3# NLS nuisances. (stolen and adapted from configure) 4for as_var in \ 5 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 7 LC_TELEPHONE LC_TIME 8do 9 eval $as_var="" 10 unset $as_var 11 export $as_var 12done 13 14if test -d "@localedir@"; then 15 : # use built-in default 16elif test -d "@DESTDIR@@localedir@"; then 17 export LOCALEDIR="@DESTDIR@@localedir@" 18else 19 echo "This test only works after \"make install\". Aborting." 20 exit 0 21fi 22 23# set | grep '^L[AC]' 24 25set -x 26 27errors=0 28for test in @codeset_tests@ 29do 30 for locale in `./${test} --list` 31 do 32 echo "Testing locale $locale..." 33 if env "LANG=$locale" "./${test}"; then :; else 34 errors=`expr $errors + 1` 35 fi 36 done 37done 38 39test $errors -eq 0 40