freebsd-nq/sys/miscfs/devfs/reproto.sh
Julian Elischer 8af5d536ff devfs changes..
changes to allow devices that don't probe (e.g. /dev/mem)
to create devfs entries
this required giving 'configure' its own SYSINIT entry
so we could duck in just before it with a DEVFS init
and some device inits..
my devfs now looks like:
./misc
./misc/speaker
./misc/mem
./misc/kmem
./misc/null
./misc/zero
./misc/io
./misc/console
./misc/pcaudio
./misc/pcaudioctl
./disks
./disks/rfloppy
./disks/rfloppy/fd0.1440
./disks/rfloppy/fd1.1200
./disks/floppy
./disks/floppy/fd0.1440
./disks/floppy/fd1.1200
also some sligt cleanups.. DEVFS needs a lot of work
but I'm getting back to it..
1995-09-03 05:43:50 +00:00

7 lines
256 B
Bash

#!/bin/sh
echo "/* THIS FILE PRODUCED AUTOMATICALLY */" >devfs_proto.h
grep -h '/\*proto\*/' *.c |awk '{print $0 ";"}' >>devfs_proto.h
echo "/* THIS FILE PRODUCED AUTOMATICALLY */" >>devfs_proto.h
echo "/* DO NOT EDIT (see reproto.sh) */" >>devfs_proto.h