|
|
@ -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 Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org> |
|
|
|
dnl All rights reserved. |
|
|
@ -74,8 +74,8 @@ dnl store a version string for 'this' file |
|
|
|
dnl |
|
|
|
dnl vers ( uniqueidstring, versionstring, subdir ) |
|
|
|
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 if subdir is defined, prepend it to the filename in the version string |
|
|
|
dnl |
|
|
@ -86,7 +86,7 @@ define({-vers-}, |
|
|
|
dnl |
|
|
|
dnl Version info for this file: |
|
|
|
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 |
|
|
|
define({-_addsubdir-}, |
|
|
@ -182,7 +182,7 @@ dnl _DEV 'ifelse' .. $2 - major_$1_c |
|
|
|
dnl |
|
|
|
ifelse($2,,,{-define(major_$1_c,$2)-})dnl |
|
|
|
dnl |
|
|
|
dnl _DEV 'ifelse' .. $4 - major_$1_b |
|
|
|
dnl _DEV 'ifelse' .. $3 - major_$1_b |
|
|
|
dnl |
|
|
|
ifelse($3,,,{-define(major_$1_b,$3)-})dnl |
|
|
|
dnl |
|
|
@ -194,12 +194,14 @@ dnl |
|
|
|
define({-$1__DEV-},{-Y-})dnl |
|
|
|
dnl |
|
|
|
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 |
|
|
|
ifdef({-$1_mkdev-},{-__mkdev({-$1-})-})dnl |
|
|
|
dnl |
|
|
|
dnl |
|
|
|
-})dnl _DEV |
|
|
|
dnl |
|
|
|
dnl |
|
|
|
define({-ifdev-},{-ifelse($1__DEV,Y,{-$2-})-})dnl |
|
|
|
dnl |
|
|
|
define({-_MKDEV-},{-$1_mkdev-})dnl |
|
|
|