Add some documentation checks
authorDavid Schleef <ds@schleef.org>
Thu, 21 Jun 2001 20:53:04 +0000 (20:53 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 21 Jun 2001 20:53:04 +0000 (20:53 +0000)
comedi/drivers/check_driver

index cf46fdb760f6befd30fb568f1e237a7050aab7dc..4319808c2c0c51139c76beed76c7b4c8de78d200 100755 (executable)
@@ -14,6 +14,8 @@ fi
 
 echo "I: ${driver}:"
 
+basedriver=$(basename ${driver} .c)
+
 # special cases
 case ${driver} in
        ni_pcimio.c)
@@ -255,3 +257,10 @@ if grep 'comedi_\(\(done\)\|\(error_done\)\|\(bufcheck\)\|\(eos\)\|\(eobuf\)\)[[
        echo "W: should be using comedi_event()"
 fi
 
+# Drivers should have documentation in Documentation/comedi/drivers.txt
+if grep "^Driver: ${basedriver}.o$" ../../Documentation/comedi/drivers.txt;then
+       echo "entry in drivers.txt"
+else
+       echo "E: not documented in drivers.txt"
+fi
+