#!/bin/sh
#
# convert all source to UTF-8. 

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

# iconv -f enc-in -t utf-8 in-file >out-file
mkdir -p UTF-8
iconv -f  LATIN1 -t UTF-8 default.ent        > UTF-8/default.ent
MANUAL=maint-guide
iconv -f  LATIN1 -t UTF-8 $MANUAL.en.sgml     >  UTF-8/$MANUAL.en.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.de.sgml     >  UTF-8/$MANUAL.de.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.es.sgml     >  UTF-8/$MANUAL.es.sgml
iconv -f  LATIN1 -t UTF-8 fr.1.add            >  UTF-8/fr.1.add
iconv -f  LATIN1 -t UTF-8 it.1.add            >  UTF-8/it.1.add
iconv -f  eucJP  -t UTF-8 $MANUAL.ja.sgml     >  UTF-8/$MANUAL.ja.sgml
iconv -f  eucKR  -t UTF-8 $MANUAL.ko.sgml     >  UTF-8/$MANUAL.ko.sgml
iconv -f  LATIN2 -t UTF-8 $MANUAL.pl.sgml     >  UTF-8/$MANUAL.pl.sgml
iconv -f  LATIN1 -t UTF-8 $MANUAL.pt-br.sgml  >  UTF-8/$MANUAL.pt-br.sgml
iconv -f  KOI8-R -t UTF-8 $MANUAL.ru.sgml     >  UTF-8/$MANUAL.ru.sgml
iconv -f  GB2312 -t UTF-8 $MANUAL.zh-cn.sgml  >  UTF-8/$MANUAL.zh-cn.sgml
iconv -f  BIG5   -t UTF-8 $MANUAL.zh-tw.sgml  >  UTF-8/$MANUAL.zh-tw.sgml

cd -
