docheck.sh (ac6e0aed984781b15d77e33653486f06c0fd516a) docheck.sh (364a805b9fd3c306ff3cbf58e8854d7771f0e3f7)
1#!/bin/sh
2#
3# Validate all locales installed in specified directory
4# (by default check system locales)
5#
6# $FreeBSD$
7#
8

--- 7 unchanged lines hidden (view full) ---

16 echo "ERROR: build test program first."
17 exit 1
18fi
19
20PATH_LOCALE=$LOCALEDIR
21LOCALES=0
22ERRORS=0
23
1#!/bin/sh
2#
3# Validate all locales installed in specified directory
4# (by default check system locales)
5#
6# $FreeBSD$
7#
8

--- 7 unchanged lines hidden (view full) ---

16 echo "ERROR: build test program first."
17 exit 1
18fi
19
20PATH_LOCALE=$LOCALEDIR
21LOCALES=0
22ERRORS=0
23
24echo "Validating locales in $LOCALEDIR"
24echo "Validating locales in $LOCALEDIR"
25echo
26
27for i in `ls -1 $LOCALEDIR`
28do
25echo
26
27for i in `ls -1 $LOCALEDIR`
28do
29 LOCALES=`expr $LOCALES + 1`
30 ./localeck $i
31 if [ $? != 0 ]; then
32 ERRORS=`expr $ERRORS + 1`
33 fi
29 LOCALES=$(($LOCALES + 1))
30 ./localeck $i || ERRORS=$(($ERRORS + 1))
34done
35
36echo
31done
32
33echo
37echo "Validation test complete."
38echo "$LOCALES locale(s) were checked"
39echo "$ERRORS invalid locale(s) were found"
34echo "Validation test complete"
35echo "$LOCALES locales were checked"
36echo "$ERRORS invalid locales were found"
40
37