err.sed revision 1c94c0a63ba68be1a7b2c640e70d7a06464e4fca
70N/A## @file
70N/A# innotek Portable Runtime - SED script for converting VBox/err.h to .mac.
70N/A#
70N/A
371N/A#
70N/A# Copyright (C) 2006-2007 Sun Microsystems, Inc.
70N/A#
70N/A# This file is part of VirtualBox Open Source Edition (OSE), as
70N/A# available from http://www.virtualbox.org. This file is free software;
70N/A# you can redistribute it and/or modify it under the terms of the GNU
70N/A# General Public License (GPL) as published by the Free Software
70N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
70N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
70N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
70N/A#
70N/A# The contents of this file may alternatively be used under the terms
70N/A# of the Common Development and Distribution License Version 1.0
70N/A# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
70N/A# VirtualBox OSE distribution, in which case the provisions of the
70N/A# CDDL are applicable instead of those of the GPL.
70N/A#
70N/A# You may elect to license modified versions of this file under the
70N/A# terms and conditions of either the GPL or the CDDL or both.
70N/A#
70N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
70N/A# Clara, CA 95054 USA or visit http://www.sun.com if you need
70N/A# additional information or have any questions.
70N/A#
70N/A
70N/A# Handle text inside the markers.
70N/A/SED-START/,/SED-END/{
70N/A
493N/A# if (#define) goto defines
70N/A/^[[:space:]]*#[[:space:]]*define/b defines
70N/A
70N/A}
493N/A
70N/A# Everything else is deleted!
70N/Ad
493N/Ab end
70N/A
70N/A##
70N/A# Convert the defines
70N/A:defines
70N/As/^[[:space:]]*#[[:space:]]*define[[:space:]]*\([a-zA-Z0-9_]*\)[[:space:]]*\(.*\)[[:space:]]*$/%define \1 \2/
70N/Ab end
70N/A
70N/A# next expression
70N/A:end
70N/A