=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/etc/MAKEDEV.sub,v retrieving revision 1.3 retrieving revision 1.4 diff -c -r1.3 -r1.4 *** src/etc/MAKEDEV.sub 2002/01/07 06:25:32 1.3 --- src/etc/MAKEDEV.sub 2002/01/07 06:54:10 1.4 *************** *** 1,4 **** ! dnl $OpenBSD: MAKEDEV.sub,v 1.3 2002/01/07 06:25:32 todd Exp $ dnl dnl Copyright (c) 2001 Todd T. Fries dnl All rights reserved. --- 1,4 ---- ! dnl $OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp $ dnl dnl Copyright (c) 2001 Todd T. Fries dnl All rights reserved. *************** *** 74,81 **** dnl dnl vers ( uniqueidstring, versionstring, subdir ) dnl ! dnl example1: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.3 2002/01/07 06:25:32 todd Exp $-}) ! dnl example2: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.3 2002/01/07 06:25:32 todd Exp $-},etc.MACHINE) dnl dnl if subdir is defined, prepend it to the filename in the version string dnl --- 74,81 ---- dnl dnl vers ( uniqueidstring, versionstring, subdir ) dnl ! dnl example1: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp $-}) ! dnl example2: vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp $-},etc.MACHINE) dnl dnl if subdir is defined, prepend it to the filename in the version string dnl *************** *** 86,92 **** dnl dnl Version info for this file: dnl ! vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.3 2002/01/07 06:25:32 todd Exp $-})dnl dnl dnl define({-_addsubdir-}, --- 86,92 ---- dnl dnl Version info for this file: dnl ! vers(__file__,{-$OpenBSD: MAKEDEV.sub,v 1.4 2002/01/07 06:54:10 todd Exp $-})dnl dnl dnl define({-_addsubdir-}, *************** *** 186,191 **** --- 186,195 ---- dnl ifelse($3,,,{-define(major_$1_b,$3)-})dnl dnl + dnl _DEV 'ifelse' .. $4 - step_$1 + dnl + ifelse($4,,,{-define(step_$1,{-$4-})-})dnl + dnl dnl Some magic here, defining a devitem also defines another dnl string so that later we can check if a particular devitem was dnl defined, and thus determine if the devices themselves are to *************** *** 244,250 **** dnl define({-CasE-}, {-ifdev({-$1-}, ! {- $1*) n=$1 b=major_$1_b c=major_$1_c;; -})-})dnl dnl dnl --- 248,254 ---- dnl define({-CasE-}, {-ifdev({-$1-}, ! {- $1*) dodisk $1 $U major_$1_b major_$1_c $U 0{--}ifstep($1);; -})-})dnl dnl dnl *************** *** 302,305 **** dnl ifstep(devstr) dnl .. if stepping is defined for the particular device, emit ' step', else dnl nothing ! define({-ifstep-},{-ifdef({-step_$1-},{- -}step_$1)-})dnl --- 306,309 ---- dnl ifstep(devstr) dnl .. if stepping is defined for the particular device, emit ' step', else dnl nothing ! define({-ifstep-},{-ifdef({-step_$1-},{- -}step_$1{--})-})dnl