VirtualBox

Ignore:
Timestamp:
Jan 2, 2015 12:31:02 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: Generated dt_names.c and dt_errtags.c. (r35)

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mkerrtags.sh

    r53634 r53658  
    1 #!/bin/sh
     1#!/usr/bin/env kmk_ash
    22#
    33# CDDL HEADER START
     
    2727#ident  "%Z%%M% %I%     %E% SMI"
    2828
     29
    2930echo "\
    3031/*\n\
     
    3940static const char *const _dt_errtags[] = {"
    4041
    41 pattern='^      \(D_[A-Z0-9_]*\),*'
    42 replace='       "\1",'
    43 
    44 sed -n "s/$pattern/$replace/p" || exit 1
     42# WARNING: Tabs in expressions.
     43#pattern='^     \(D_[A-Z0-9_]*\),*'
     44#replace='      "\1",'
     45#
     46#sed -n "s/$pattern/$replace/p" || exit 1
     47set -x
     48kmk_sed --lang_c -n 's/^[[:space:]]*\(D_[A-Z0-9_]*\),*/ "\1",/p' $1 || exit 1
    4549
    4650echo "\
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette