4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #pragma ident "%Z%%M% %I% %E% SMI"
29 #include "gnu_msgfmt.h"
36 char *inputdir
= NULL
;
43 (void) fprintf(stderr
,
44 gettext(ERR_USAGE
), cmd
);
49 main(int argc
, char **argv
)
52 static struct flags flag
;
54 (void) setlocale(LC_ALL
, "");
55 #if !defined(TEXT_DOMAIN)
56 #define TEXT_DOMAIN "SYS_TEST"
58 (void) textdomain(TEXT_DOMAIN
);
60 if (cmd
= strrchr(argv
[0], '/'))
65 ret
= parse_option(&argc
, &argv
, &flag
);
75 catalog_init(outfile
);
81 error(gettext(ERR_SUN_ON_GNU
), cmd
);
91 po_names
= (char **)Xmalloc(argc
* sizeof (char *));
94 diag(gettext(DIAG_START_PROC
), *argv
);
101 for (i
= 0; i
< cur_po_index
; i
++) {
107 error(gettext(ERR_ERROR_FOUND
), po_error
);
110 output_all_gnu_mo_files();