projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f24366
)
Add some documentation checks
author
David Schleef
<ds@schleef.org>
Thu, 21 Jun 2001 20:53:04 +0000
(20:53 +0000)
committer
David Schleef
<ds@schleef.org>
Thu, 21 Jun 2001 20:53:04 +0000
(20:53 +0000)
comedi/drivers/check_driver
patch
|
blob
|
history
diff --git
a/comedi/drivers/check_driver
b/comedi/drivers/check_driver
index cf46fdb760f6befd30fb568f1e237a7050aab7dc..4319808c2c0c51139c76beed76c7b4c8de78d200 100755
(executable)
--- 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
+