summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2006-03-26 20:08:09 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2006-03-26 20:08:09 +0000
commitc7fc43440df4ee0406f8483ff717949056f81845 (patch)
treed1933cdedc07bb3dea4f9e8becfa47c46c928a7e /scripts
parent7afa402d5269bad9cf422c4c2369c51ef76ded8b (diff)
downloadclasspath-c7fc43440df4ee0406f8483ff717949056f81845.tar.gz
2006-03-26 Andrew John Hughes <gnu_andrew@member.fsf.org>
* Merge from Classpath HEAD --> generics for the period 2005/03/07 to the branch tag generics_merge_20050326.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-locale-list.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/generate-locale-list.sh b/scripts/generate-locale-list.sh
index fb55c1c28..3c6809de1 100755
--- a/scripts/generate-locale-list.sh
+++ b/scripts/generate-locale-list.sh
@@ -40,18 +40,30 @@ echo "obligated to do so. If you do not wish to do so, delete this"
echo "exception statement from your version. */"
echo
echo
-echo "package java.util;"
+echo "package gnu.java.locale;"
echo
echo "// This file was automatically generated by scripts/generate-locale-list.sh"
echo
echo
echo "class LocaleData"
echo "{"
-echo " public static String[] localeNames ="
+echo " public static final String[] localeNames ="
echo " {"
( cd $CLASSPATH_SRCDIR/resource/gnu/java/locale ; ls LocaleInformation_*.properties ) | xargs -n 1 echo | sed -e 's/LocaleInformation_\(.*\)\.properties/\1/' |
while read locale ; do echo " \"$locale\"," ; done
echo " };"
+
+echo
+echo " public static final String[] collatorLocaleNames ="
+echo " {"
+
+( cd $CLASSPATH_SRCDIR/resource/gnu/java/locale; grep -l collation_rules LocaleInformation_*.properties) |
+ xargs -n 1 echo | sed -e 's/LocaleInformation_\(.*\)\.properties/\1/' |
+ sed -e '/^$/ d' |
+ while read locale ; do echo " \"$locale\"," ; done
+
+echo " };"
+
echo "}"