www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/07/01/11:22:00

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: comp
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: [geda-user] how to find sch-sym depenencies for Makefile
Mime-Version: 1.0
Message-Id: <20210701152018.F248283D521B@turkos.aspodata.se>
Date: Thu, 1 Jul 2021 17:20:18 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com

 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019