1*1670a1c2SRui Paulo#!/bin/sh 2*1670a1c2SRui Paulo# 3*1670a1c2SRui Paulo# CDDL HEADER START 4*1670a1c2SRui Paulo# 5*1670a1c2SRui Paulo# The contents of this file are subject to the terms of the 6*1670a1c2SRui Paulo# Common Development and Distribution License, Version 1.0 only 7*1670a1c2SRui Paulo# (the "License"). You may not use this file except in compliance 8*1670a1c2SRui Paulo# with the License. 9*1670a1c2SRui Paulo# 10*1670a1c2SRui Paulo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11*1670a1c2SRui Paulo# or http://www.opensolaris.org/os/licensing. 12*1670a1c2SRui Paulo# See the License for the specific language governing permissions 13*1670a1c2SRui Paulo# and limitations under the License. 14*1670a1c2SRui Paulo# 15*1670a1c2SRui Paulo# When distributing Covered Code, include this CDDL HEADER in each 16*1670a1c2SRui Paulo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17*1670a1c2SRui Paulo# If applicable, add the following below this CDDL HEADER, with the 18*1670a1c2SRui Paulo# fields enclosed by brackets "[]" replaced with your own identifying 19*1670a1c2SRui Paulo# information: Portions Copyright [yyyy] [name of copyright owner] 20*1670a1c2SRui Paulo# 21*1670a1c2SRui Paulo# CDDL HEADER END 22*1670a1c2SRui Paulo# 23*1670a1c2SRui Paulo# 24*1670a1c2SRui Paulo# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 25*1670a1c2SRui Paulo# Use is subject to license terms. 26*1670a1c2SRui Paulo# 27*1670a1c2SRui Paulo#ident "%Z%%M% %I% %E% SMI" 28*1670a1c2SRui Paulo 29*1670a1c2SRui Pauloecho "\ 30*1670a1c2SRui Paulo/*\n\ 31*1670a1c2SRui Paulo * Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\ 32*1670a1c2SRui Paulo * Use is subject to license terms.\n\ 33*1670a1c2SRui Paulo */\n\ 34*1670a1c2SRui Paulo\n\ 35*1670a1c2SRui Paulo#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n" 36*1670a1c2SRui Paulo 37*1670a1c2SRui Paulopattern='^#define[ ]\(E[A-Z0-9]*\)[ ]*\([A-Z0-9]*\).*$' 38*1670a1c2SRui Pauloreplace='inline int \1 = \2;@#pragma D binding "1.0" \1' 39*1670a1c2SRui Paulo 40*1670a1c2SRui Paulosed -n "s/$pattern/$replace/p" | tr '@' '\n' 41