On Sun, Jul 20, 2008 at 10:18:18AM -0700, Toby Butzon wrote:
> Hi,
> 
> The original indices (and AFAIK no updates) were checked in:
> https://galinha.ucpel.tche.br/svn/chicken-eggs/doc-indices/. If you
> want to tackle updating those, I could put the glue in place on my end
> to suck it in.
> 
> I've forgotten how the chicken.index was generated, though; it appears
> "grovel" only did eggs. Felix, do you recall?

This should be much easier with Chicken 4, since it maintains explicit
lists of exported symbols in the *.import files available in the chicken
repos.  This could be automated.  Perhaps also for eggs, since eggs
generate import files when they're compiled and installed.

Attached is a script I quickly hacked together.  Execute it from the
branches/hygienic directory and it will output the new contents for
the doc-indices/chicken.index file to stdout.

HTH,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth
(require-extension posix)

(define (make-url module-name symbol)
  (conc "http://chicken.wiki.br/Unit " module-name "#" symbol))

(define (quoted symbol)
  (cadr symbol))

(for-each
 (lambda (f)
   (let* ((contents (with-input-from-file f read))
          (module-name (quoted (cadr contents))))
     (for-each (lambda (symbol)
                 (write (cons symbol (make-url module-name symbol)))
                 (newline))
               (quoted (caddr contents)))))
 (glob "*.import.scm"))

Attachment: pgposZJwXDjnY.pgp
Description: PGP signature

_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to