Browse Source

comment tweaking

OPENBSD_3_1
todd 22 years ago
parent
commit
1c9eecb453
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      src/etc/MAKEDEV.sub

+ 8
- 6
src/etc/MAKEDEV.sub View File

@ -1,4 +1,4 @@
dnl $OpenBSD: MAKEDEV.sub,v 1.1 2002/01/04 09:25:35 todd Exp $
dnl $OpenBSD: MAKEDEV.sub,v 1.2 2002/01/07 06:06:40 todd Exp $
dnl dnl
dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
dnl All rights reserved. dnl All rights reserved.
@ -74,8 +74,8 @@ dnl store a version string for 'this' file
dnl dnl
dnl vers ( uniqueidstring, versionstring, subdir ) dnl vers ( uniqueidstring, versionstring, subdir )
dnl dnl
dnl example1: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.1 2002/01/04 09:25:35 todd Exp $-})
dnl example2: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.1 2002/01/04 09:25:35 todd Exp $-},etc.MACHINE)
dnl example1: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.2 2002/01/07 06:06:40 todd Exp $-})
dnl example2: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.2 2002/01/07 06:06:40 todd Exp $-},etc.MACHINE)
dnl dnl
dnl if subdir is defined, prepend it to the filename in the version string dnl if subdir is defined, prepend it to the filename in the version string
dnl dnl
@ -86,7 +86,7 @@ define({-vers-},
dnl dnl
dnl Version info for this file: dnl Version info for this file:
dnl dnl
vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.1 2002/01/04 09:25:35 todd Exp $-})dnl
vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.2 2002/01/07 06:06:40 todd Exp $-})dnl
dnl dnl
dnl dnl
define({-_addsubdir-}, define({-_addsubdir-},
@ -182,7 +182,7 @@ dnl _DEV 'ifelse' .. $2 - major_$1_c
dnl dnl
ifelse($2,,,{-define(major_$1_c,$2)-})dnl ifelse($2,,,{-define(major_$1_c,$2)-})dnl
dnl dnl
dnl _DEV 'ifelse' .. $4 - major_$1_b
dnl _DEV 'ifelse' .. $3 - major_$1_b
dnl dnl
ifelse($3,,,{-define(major_$1_b,$3)-})dnl ifelse($3,,,{-define(major_$1_b,$3)-})dnl
dnl dnl
@ -194,12 +194,14 @@ dnl
define({-$1__DEV-},{-Y-})dnl define({-$1__DEV-},{-Y-})dnl
dnl dnl
dnl More magic, put device string name into a queue of script segments to dnl More magic, put device string name into a queue of script segments to
dnl be shown later
dnl be shown later if it has been defined as a device in MAKEDEV.mi
dnl dnl
ifdef({-$1_mkdev-},{-__mkdev({-$1-})-})dnl ifdef({-$1_mkdev-},{-__mkdev({-$1-})-})dnl
dnl dnl
dnl dnl
-})dnl _DEV -})dnl _DEV
dnl
dnl
define({-ifdev-},{-ifelse($1__DEV,Y,{-$2-})-})dnl define({-ifdev-},{-ifelse($1__DEV,Y,{-$2-})-})dnl
dnl dnl
define({-_MKDEV-},{-$1_mkdev-})dnl define({-_MKDEV-},{-$1_mkdev-})dnl


Loading…
Cancel
Save