2 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
7 # The contents of this file are subject to the terms of the
8 # Common Development and Distribution License, Version 1.0 only
9 # (the "License"). You may not use this file except in compliance
12 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 # or http://www.opensolaris.org/os/licensing.
14 # See the License for the specific language governing permissions
15 # and limitations under the License.
17 # When distributing Covered Code, include this CDDL HEADER in each
18 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 # If applicable, add the following below this CDDL HEADER, with the
20 # fields enclosed by brackets "[]" replaced with your own identifying
21 # information: Portions Copyright [yyyy] [name of copyright owner]
25 #ident "%Z%%M% %I% %E% SMI"
28 # Extract MACROs from .msg file
29 # The MACROs which are referenced by MSG_INTL() go to CATA_MSG_INTL_LIST
30 # The MACROs which are referenced by MSG_ORIG() go to CATA_MSG_ORIG_LIST
35 # The MACRO will not be recorded
39 # Collecting MACRO's in between _START_ and _END_
41 # Collecting MACRO's in after _END_
46 # If the MACROs are surrounded by _CHKMSG_SKIP_BEGIN_ and
47 # _CHKMSG_SKIP_END_, these MACRO will not be recorded for checking.
48 # It is assumed that the use of MACRO are checked by developers.
50 /_CHKMSG_SKIP_BEGIN_
/ {
62 if ($
2 ==
"_START_") {
65 } else if ($
2 ==
"_END_") {
68 } else if (match($
2, "MSG_ID_") != 0) {
72 if (skip ==
1 || dontprint ==
1)
76 print $
2 >> "CATA_MSG_INTL_LIST"
78 print $
2 >> "CATA_MSG_ORIG_LIST"