blob: d4dae788522e602646c472894df74882a22da894 [file] [log] [blame]
#!/bin/sh
# Simple check of transliteration facilities.
# Usage: check-translit SRCDIR FILE FROMCODE TOCODE
srcdir="$1"
file="$2"
fromcode="$3"
tocode="$4"
set -e
./iconv -f "$fromcode" -t "$tocode" < "${srcdir}"/"$file"."$fromcode" > tmp
cmp "${srcdir}"/"$file"."$tocode" tmp
rm -f tmp
exit 0