2010-04-15 Jb Evain <jbevain@novell.com>
[mcs.git] / class / I18N / mklist.sh
bloba3b462bd283975fa09fdda1546024a1768488d6f
1 #! /bin/sh
3 # mklist.sh - Make the I18N handler list file "I18N-handlers.def".
5 # Copyright (C) 2002 Southern Storm Software, Pty Ltd.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 # Process the command-line options.
22 ILFIND="$1"
23 OUTFILE="$2"
24 if test "x$ILFIND" = "x" ; then
25 echo "$0: missing ilfind argument" 1>&2
26 exit 1
28 if test "x$OUTFILE" = "x" ; then
29 echo "$0: missing output file argument" 1>&2
30 exit 1
32 shift
33 shift
35 # Search all region assemblies for interesting classes and
36 # write them to the specified output file.
37 exec "${ILFIND}" --public-only --sub-string I18N $* | \
38 grep 'class ' | \
39 sed -e '1,$s/^.*: class //g' - | \
40 sed -e '1,$s/^class //g' - >"${OUTFILE}"