| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # A script to check if the variables are OK for bash shell script. |
| 3 | if [scip-shell system . . `[`. -z "$(echoscip-shell system . . echo. "$LANG" | grepscip-shell system . . grep. -iE "(UTF-8|utf8)")" ]; then |
| 4 | echoscip-shell system . . echo. "This program must be run in UTF-8 environment!" |
| 5 | echoscip-shell system . . echo. "Now the environment variable LANG is: $LANG" |
| 6 | echoscip-shell system . . echo. "Program terminated!" |
| 7 | exit 1 |
| 8 | fi |
| 9 | prog="$(basenamescip-shell system . . basename. $0)" |
| 10 | for i in ./*; do |
| 11 | nm="$(basenamescip-shell system . . basename. $i)" |
| 12 | [scip-shell system . . `[`. "$nm" = "$prog" ] && continue |
| 13 | # BIG5 is the only exception. Skip it. |
| 14 | [scip-shell system . . `[`. -n "$(echoscip-shell system . . echo. $nm | grepscip-shell system . . grep. -i big5)" ] && continue |
| 15 | # skip dir |
| 16 | [scip-shell system . . `[`. -d "$nm" ] && continue |
| 17 | echoscip-shell system . . echo. "Checking $nm..." |
| 18 | . $nm |
| 19 | done |