From 0de261f0b1985cec13037f1fcfb3a60fe3441332 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 10 Aug 2006 23:44:17 +0000 Subject: Embed device list comments in generated hildevs_data.h file; no functional change. --- sys/dev/hil/devlist2h.awk | 18 ++++++++++++------ sys/dev/hil/hildevs | 4 ++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/sys/dev/hil/devlist2h.awk b/sys/dev/hil/devlist2h.awk index 4663efae4b9..773c97ebaac 100644 --- a/sys/dev/hil/devlist2h.awk +++ b/sys/dev/hil/devlist2h.awk @@ -1,5 +1,5 @@ #! /usr/bin/awk -f -# $OpenBSD: devlist2h.awk,v 1.3 2005/05/13 14:54:44 miod Exp $ +# $OpenBSD: devlist2h.awk,v 1.4 2006/08/10 23:44:16 miod Exp $ # # Copyright (c) 2003, Miodrag Vallat. # All rights reserved. @@ -52,18 +52,24 @@ $1 == "keyboard" || $1 == "mouse" || $1 == "idmodule" || $1 == "buttonbox" { $2, $3, toupper($1)) # description, with optional ``#''-prefixed comments + comment = 0 i = 4 f = i while (f <= NF) { if ($f == "#") { - break + comment = 1 + printf ("\" },\t/*") + } else { + if (f > i) + printf(" ") + printf("%s", $f) } - if (f > i) - printf(" ") - printf("%s", $f) f++ } - printf("\" },\n") + if (comment) + printf(" */\n"); + else + printf("\" },\n") next } diff --git a/sys/dev/hil/hildevs b/sys/dev/hil/hildevs index 169ac8eb53f..00881ae6f60 100644 --- a/sys/dev/hil/hildevs +++ b/sys/dev/hil/hildevs @@ -1,4 +1,4 @@ -$OpenBSD: hildevs,v 1.2 2005/05/13 14:54:44 miod Exp $ +$OpenBSD: hildevs,v 1.3 2006/08/10 23:44:16 miod Exp $ /* * Copyright (c) 2003, Miodrag Vallat. * All rights reserved. @@ -33,7 +33,7 @@ idmodule 34 34 ID module buttonbox 35 3f Button box buttonbox 5c 5f Barcode reader mouse 60 60 Single knob -mouse 61 61 Nine knob +mouse 61 61 Nine knob # can also be quadrature mouse 62 67 Quadrature mouse 68 6b Mouse mouse 6c 6f Trackball -- cgit v1.2.3