diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-30 07:59:53 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-30 07:59:53 +0000 |
commit | 3701857f3e720595106b46552a3fde4a34e19585 (patch) | |
tree | beedc2d584cbe1c9f8ed750d86a6c7d7b9b5012f /sbin/route/keywords.sh | |
parent | 1621084c749033911cc4485ae5e81d335d1f86ab (diff) |
make keywords.sh generate an enum for the keys
Diffstat (limited to 'sbin/route/keywords.sh')
-rw-r--r-- | sbin/route/keywords.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sbin/route/keywords.sh b/sbin/route/keywords.sh index 310f2e1fadb..10a0ef229f4 100644 --- a/sbin/route/keywords.sh +++ b/sbin/route/keywords.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: keywords.sh,v 1.14 2005/03/30 06:12:38 henning Exp $ +# $OpenBSD: keywords.sh,v 1.15 2005/03/30 07:59:52 henning Exp $ # $NetBSD: keywords.sh,v 1.2 1996/11/15 18:57:21 gwr Exp $ # @(#)keywords 8.2 (Berkeley) 3/19/94 # @@ -79,13 +79,16 @@ struct keytab { char *kt_cp; int kt_i; }; -' + +enum { + K_NULL,' $awk '{ - printf("#define\tK_%s\t%d\n", $2, NR); + printf("\tK_%s,\n", $2); }' < _keywords.t2 -echo ' +echo '}; + struct keytab keywords[] = {' $awk '{ |