#!/bin/sh
#
# As long as the translator/upstream working on the old tree with 
# non-UTF-8 encoded file, this script needs to be run to create UTF-8 
# source.  Please note that default.ent may contain many encodings.

# Disable overwrite when people start using UTF-8 source.

# iconv -f enc-in -t utf-8 in-file >out-file
iconv -f  LATIN1 -t UTF-8 default.ent        > UTF-8/default.ent
MANUAL=maint-guide
iconv -f  eucJP  -t UTF-8 $MANUAL.ja.sgml    > UTF-8/$MANUAL.ja_JP.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.sgml       > UTF-8/$MANUAL.en_US.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.de.sgml    > UTF-8/$MANUAL.de_DE.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.es.sgml    > UTF-8/$MANUAL.es_ES.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.fr.sgml    > UTF-8/$MANUAL.fr_FR.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.it.sgml    > UTF-8/$MANUAL.it_IT.UTF-8.sgml
iconv -f  eucJP  -t UTF-8 $MANUAL.ja.sgml    > UTF-8/$MANUAL.ja_JP.UTF-8.sgml
iconv -f  eucKR  -t UTF-8 $MANUAL.ko.sgml    > UTF-8/$MANUAL.ko_KR.UTF-8.sgml
iconv -f  LATIN2 -t UTF-8 $MANUAL.pl.sgml    > UTF-8/$MANUAL.pl_PL.UTF-8.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.pt_BR.sgml > UTF-8/$MANUAL.pt_BR.UTF-8.sgml
iconv -f  KOI8-R -t UTF-8 $MANUAL.ru.sgml    > UTF-8/$MANUAL.ru_RU.UTF-8.sgml
iconv -f  GB2312 -t UTF-8 $MANUAL.zh_CN.sgml > UTF-8/$MANUAL.zh_CN.UTF-8.sgml
iconv -f  BIG5   -t UTF-8 $MANUAL.zh_TW.sgml > UTF-8/$MANUAL.zh_TW.UTF-8.sgml

