#!/bin/bash

#-------------------------------------------------------------
# This script creates all possible locale-files.
# Note that there are a couple of files which can not be
# compiled due to missing/wrong charmaps
#-------------------------------------------------------------

# First the ones using the ISO-8859-1 charmap
#
for i in de_DE.88591 fr_FR.8859-1,GL  ; do
	echo Creating $i
	/usr/bin/localedef -c -f /usr/lib/nls/charmap/ISO-8859-1 -i /usr/lib/nls/src/$i $i 
	echo locale: $i RC = $?
done

# Now the ISO8859-1 charmap
#
for i in  \
	pt_PT \
	de_AT de_BE de_CH de_DE de_LU en_GB en_IE en_US  \
	fr_BE fr_CA fr_CH fr_FR fr_LU it_IT  \
	 nl_BE nl_NL POSIX \
	; do
	echo Creating $i
	/usr/bin/localedef -c -f /usr/lib/nls/charmap/ISO8859-1 -i /usr/lib/nls/src/$i $i
	echo locale: $i RC = $?
done

#-----------------------------------------------------------------
# All the broken locale-files and the reasons.
# If you need one, fix it and feed the changes back to me
#-----------------------------------------------------------------
# file             reason
#-----------------------------------------------------------------
# en_DK.com        No comments are allowed after collation order line
# et_EE            "
# fi_FI            "
# ja_JP,KS         charmap!
# ja_JP,XO         "
# fr_FR.8859-1,XO  "
# sv_SE en_CA en_DK da_DK es_ES 
# it_LT lv_LV no_NO pl_PL ro_RO ru_RU sl_SI
# hr_HR hu_HU is_IS fo_FO iw_IL kl_GL sv_FI 
# gr_GR 

exit
