gen-text revision 7c478bd95313f5f23a4c958a745db2134aa03244
246N/A#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */
246N/A#
246N/A# CDDL HEADER START
246N/A#
246N/A# The contents of this file are subject to the terms of the
246N/A# Common Development and Distribution License, Version 1.0 only
246N/A# (the "License"). You may not use this file except in compliance
246N/A# with the License.
246N/A#
246N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
246N/A# or http://www.opensolaris.org/os/licensing.
246N/A# See the License for the specific language governing permissions
246N/A# and limitations under the License.
246N/A#
246N/A# When distributing Covered Code, include this CDDL HEADER in each
246N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
246N/A# If applicable, add the following below this CDDL HEADER, with the
246N/A# fields enclosed by brackets "[]" replaced with your own identifying
246N/A# information: Portions Copyright [yyyy] [name of copyright owner]
246N/A#
844N/A# CDDL HEADER END
246N/A#
246N/A##########
246N/A#
246N/A# Generate e_xxx__base.c files
649N/A#
618N/A# THE ../../oam_def.h FILE MUST BE GENERATED FIRST
246N/A##########
246N/A
246N/Afor x in xx??
844N/Ado
844N/A
246N/A (
246N/A base=`line | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
246N/A echo "generating ${base}.c"
246N/A
246N/A (
246N/A echo "/*This file is automatically generated from msg.source.*/"
246N/A echo 'char *'${base}'[] = {'
246N/A sed -n -e 's/^[ ]*".*"$/&,/p'
246N/A echo '};'
246N/A ) >${base}.c
246N/A
246N/A ) <${x}
246N/A
246N/Adone
246N/A