delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2020/12/04/04:48:02

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] config files
Mime-Version: 1.0
Message-Id: <20201204092821.0E29982C622B@turkos.aspodata.se>
Date: Fri, 4 Dec 2020 10:28:21 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com

With the current trend towards non executable config files, I wounder
how I do this today.

I have some to dir where there are subdirectories for
symbols ("sym"), subsheets ("_sub_page"), and sub projects
("a", "b", ...)

In the top dir, I have this gafrc file:

(reset-component-library)
(reset-source-library)

(if (access? "sym" R_OK)
 (begin
  (source-library  "_sub_page")
  (source-library  "a")
  (source-library  "b")
...
  (component-library "sym")
 )
 (begin
  (source-library  "../_sub_page")
  (source-library  "../a")
  (source-library  "../b")
...
  (component-library "../sym")
  (component-library ".")
 )
)

and in the subproject dirs I have done ln -s ../gafrc ., so
regardless if I start lepton/gschem from top dir or from a sub dir,
I get the same sym and _sub_page dir.

So, how do I set up the configs so that I can access the same component 
and source library regardless of where I start the schematic editor and
without resorting to useing absolute paths (different people check it 
out and places it in different paths) ?

Regards,
/Karl Hammar

- Raw text -


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