Mail Archives: geda-user/2021/07/01/11:22:00
I want to have a program that finds dependencies between
a .sch and the .sch and .sym files it depends on, suitable
for makefiles, to write lines like:
a.sch: <somewhere>/a.sym <there>/b.sch ...
I can easily (with e.g. perl) extract "C ..." lines and their
sym and source=*.sch parts. But I don't want to write a scheme
parser to find out (in various gafrc files) where to search for
the actual files, e.g. to get rid of a annoying error
messege, I did:
(define (cl str) (if (access? str R_OK) (component-library str)))
(cl "sym")
so a simple grep doesn't work.
I tried with:
$ lepton-cli shell -c '(define (source-library str) (display str))' -s /home/karl/.config/lepton-eda/gafrc
** Message: 17:05:36.409: Loaded RC file [/usr/local/share/lepton-eda/system-gafrc]
** Message: 17:05:36.703: Loaded RC file [/home/karl/.config/lepton-eda/gafrc]
but didn't work, but at leas I got a list of gafrc files.
I guess I could start out with lepton-eda/utils/archive, but
I'm not that good at scheme.
Regards,
/Karl Hammar
- Raw text -