From: David Schleef Date: Thu, 21 Jun 2001 20:53:04 +0000 (+0000) Subject: Add some documentation checks X-Git-Tag: r0_7_60~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4b1e62bd759e6c7e4616f9d5330457c111af1f9a;p=comedi.git Add some documentation checks --- diff --git a/comedi/drivers/check_driver b/comedi/drivers/check_driver index cf46fdb7..4319808c 100755 --- a/comedi/drivers/check_driver +++ b/comedi/drivers/check_driver @@ -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 +