OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [scripts/] [generate-locale-list.sh] - Blame information for rev 777

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 777 jeremybenn
#!/bin/sh
2
 
3
CLASSPATH_SRCDIR=`dirname $0`/..
4
 
5
echo "/* LocaleData.java --"
6
echo "   Copyright (C) 2004, 2005  Free Software Foundation, Inc."
7
echo
8
echo "This file is part of GNU Classpath."
9
echo
10
echo "GNU Classpath is free software; you can redistribute it and/or modify"
11
echo "it under the terms of the GNU General Public License as published by"
12
echo "the Free Software Foundation; either version 2, or (at your option)"
13
echo "any later version."
14
echo
15
echo "GNU Classpath is distributed in the hope that it will be useful, but"
16
echo "WITHOUT ANY WARRANTY; without even the implied warranty of"
17
echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU"
18
echo "General Public License for more details."
19
echo
20
echo "You should have received a copy of the GNU General Public License"
21
echo "along with GNU Classpath; see the file COPYING.  If not, write to the"
22
echo "Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA"
23
echo "02110-1301 USA."
24
echo
25
echo "Linking this library statically or dynamically with other modules is"
26
echo "making a combined work based on this library.  Thus, the terms and"
27
echo "conditions of the GNU General Public License cover the whole"
28
echo "combination."
29
echo
30
echo "As a special exception, the copyright holders of this library give you"
31
echo "permission to link this library with independent modules to produce an"
32
echo "executable, regardless of the license terms of these independent"
33
echo "modules, and to copy and distribute the resulting executable under"
34
echo "terms of your choice, provided that you also meet, for each linked"
35
echo "independent module, the terms and conditions of the license of that"
36
echo "module.  An independent module is a module which is not derived from"
37
echo "or based on this library.  If you modify this library, you may extend"
38
echo "this exception to your version of the library, but you are not"
39
echo "obligated to do so.  If you do not wish to do so, delete this"
40
echo "exception statement from your version. */"
41
echo
42
echo
43
echo "package gnu.java.locale;"
44
echo
45
echo "// This file was automatically generated by scripts/generate-locale-list.sh"
46
echo
47
echo
48
echo "class LocaleData"
49
echo "{"
50
echo "  public static final String[] localeNames ="
51
echo "    {"
52
 
53
( cd $CLASSPATH_SRCDIR/resource/gnu/java/locale ; ls LocaleInformation_*.properties ) | xargs -n 1 echo | sed -e 's/LocaleInformation_\(.*\)\.properties/\1/' |
54
while read locale ; do echo "      \"$locale\"," ; done
55
 
56
echo "    };"
57
 
58
echo
59
echo "  public static final String[] collatorLocaleNames ="
60
echo "    {"
61
 
62
( cd $CLASSPATH_SRCDIR/resource/gnu/java/locale; grep -l collation_rules LocaleInformation_*.properties) |
63
 xargs -n 1 echo | sed -e 's/LocaleInformation_\(.*\)\.properties/\1/' |
64
 sed -e '/^$/ d' |
65
 while read locale ; do echo "      \"$locale\"," ; done
66
 
67
echo "    };"
68
 
69
echo "}"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.