Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/include/rump Unlike gnu sed our sed does not recogn...



details:   https://anonhg.NetBSD.org/src/rev/75e8c2f666c5
branches:  trunk
changeset: 992256:75e8c2f666c5
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Aug 21 11:45:23 2018 +0000

description:
Unlike gnu sed our sed does not recognize inline labels (separated by
semi-colons) so split the lines, and make sure that command lists end
with a semi-colon.

diffstat:

 sys/rump/include/rump/makerumpdefs.sh |  24 ++++++++++++++++++------
 1 files changed, 18 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 3b229ae42fe1 -r 75e8c2f666c5 sys/rump/include/rump/makerumpdefs.sh
--- a/sys/rump/include/rump/makerumpdefs.sh     Tue Aug 21 11:07:40 2018 +0000
+++ b/sys/rump/include/rump/makerumpdefs.sh     Tue Aug 21 11:45:23 2018 +0000
@@ -8,7 +8,7 @@
 rm -f rumpdefs.h
 exec 3>&1 > rumpdefs.h
 
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $       */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.31 2018/08/21 11:45:23 christos Exp $      */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n\n'
 printf '#ifndef _RUMP_RUMPDEFS_H_\n'
 printf '#define _RUMP_RUMPDEFS_H_\n\n'
@@ -57,7 +57,13 @@
     < ../../../sys/fcntl.h
 sed -n '/#define       F_[A-Z_]*       *(/s/F_/RUMP_F_/gp' \
     < ../../../sys/fcntl.h
-sed -n '/#define[      ]*_FCN/{:t;N;/\\$/bt;s/_FCN/RUMP__FCN/g;s/F_[A-Z]/RUMP_&/gp}' <../../../sys/fcntl.h | sed 's,/\*.*$,,'
+sed -n '/#define[      ]*_FCN/{
+:t
+N
+/\\$/bt
+s/_FCN/RUMP__FCN/g
+s/F_[A-Z]/RUMP_&/gp
+}' <../../../sys/fcntl.h | sed 's,/\*.*$,,'
 
 fromvers ../../../sys/vnode.h
 sed -n '/enum vtype.*{/{s/vtype/rump_&/;s/ V/ RUMP_V/gp;}' <../../../sys/vnode.h
@@ -104,9 +110,15 @@
 
 fromvers ../../../sys/ioccom.h
 sed -n '/#define[      ]*IOC[A-Z_].*[^\\]$/s/IOC/RUMP_&/gp' <../../../sys/ioccom.h | sed 's,/\*.*$,,'
-sed -n '/#define[      ]*_IO.*\\$/{:t;N;/\\$/bt;s/_IOC/_RUMP_IOC/g;s/IOC[A-Z]/RUMP_&/gp}' <../../../sys/ioccom.h \
+sed -n '/#define[      ]*_IO.*\\$/{
+:t
+N
+/\\$/bt
+s/_IOC/_RUMP_IOC/g
+s/IOC[A-Z]/RUMP_&/gp
+}' <../../../sys/ioccom.h \
     | sed 's,/\*.*$,,'
-sed -n '/#define[      ]*_IO.*[^\]$/{s/_IO/_RUMP_IO/g;s/IOC_/RUMP_IOC_/gp}' <../../../sys/ioccom.h \
+sed -n '/#define[      ]*_IO.*[^\]$/{s/_IO/_RUMP_IO/g;s/IOC_/RUMP_IOC_/gp;}' <../../../sys/ioccom.h \
     | sed 's,/\*.*$,,'
 
 fromvers ../../../sys/ktrace.h
@@ -135,7 +147,7 @@
 echo Generating rumperr.h
 rm -f rumperr.h
 exec > rumperr.h
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $       */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.31 2018/08/21 11:45:23 christos Exp $      */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n'
 
 fromvers ../../../sys/errno.h
@@ -176,7 +188,7 @@
 echo Generating rumperrno2host.h 1>&3
 rm -f rumperrno2host.h
 exec > rumperrno2host.h
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $       */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.31 2018/08/21 11:45:23 christos Exp $      */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n'
 
 fromvers ../../../sys/errno.h



Home | Main Index | Thread Index | Old Index