* cov
@ 2003-11-02 17:48 Thien-Thi Nguyen
0 siblings, 0 replies; only message in thread
From: Thien-Thi Nguyen @ 2003-11-02 17:48 UTC (permalink / raw)
Cc: guile-user
the cov script lives in doc/ref/ for guile-1.4.x. doc/groupings.alist
makes use of the output of cov to test `docinfo' membership, like so:
;; excerpt from doc/groupings.alist
(docinfo
(description "documented in the info manual")
(grok () (let ((all #f))
(lambda (x)
(or all (set! all (let ((f "doc/ref/doc-coverage"))
(if (file-exists? f)
(let* ((p (open-input-file f))
(ls (read p)))
(close-port p)
ls)
0)))) ;; known unavailable
(and (pair? all)
(memq x all))))))
we use `docinfo' instead of the more succinct `doc' to allow for the
possibility of other doc* groups in the future.
for guile-1.6.x, i see that scripts/scan-api was deleted for some
reason (why?). you can get the latest from 1.4.x in any case.
thi
______________________________________________________________
# cov --- list documented Scheme and C elements
#
# Usage: cov > doc-coverage
cat > cov.sed <<EOF
/^[*] /!d
/^[*] Menu:$/d
s/^[*] //g
s/: .*//g
/ <[0-9]>$/d
EOF
spew ()
{
info -n "$1" -f guile.info | sed -f cov.sed
}
echo '('
spew "Variable Index"
spew "Procedure Index"
spew "Type Index"
spew "R5RS Index"
echo ')'
rm -f cov.sed
# cov ends here
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-02 17:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-02 17:48 cov Thien-Thi Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).