Current Path : /usr/src/tools/diag/localeck/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/src/tools/diag/localeck/docheck.sh |
#!/bin/sh # # Validate all locales installed in specified directory # (by default check system locales) # # $FreeBSD: release/9.1.0/tools/diag/localeck/docheck.sh 90189 2002-02-04 16:17:19Z phantom $ # LOCALEDIR=/usr/share/locale if [ "$1" != "" ]; then LOCALEDIR=$1 fi if [ ! -x ./localeck ]; then echo "ERROR: build test program first." exit 1 fi PATH_LOCALE=$LOCALEDIR LOCALES=0 ERRORS=0 echo "Validating locales in $LOCALEDIR" echo for i in `ls -1 $LOCALEDIR` do LOCALES=$(($LOCALES + 1)) ./localeck $i || ERRORS=$(($ERRORS + 1)) done echo echo "Validation test complete" echo "$LOCALES locales were checked" echo "$ERRORS invalid locales were found"