delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2020/12/05/06:40:25

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sat, 5 Dec 2020 12:20:06 +0100 (CET)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] config files
In-Reply-To: <20201204201700.1584C82C622B@turkos.aspodata.se>
Message-ID: <alpine.DEB.2.21.2012051215120.1307@nimbus>
References: <20201204092821 DOT 0E29982C622B AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2012041924580 DOT 1174 AT nimbus> <20201204201700 DOT 1584C82C622B AT turkos DOT aspodata DOT se>
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 4 Dec 2020, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> 3, when I cd /<some_path>/top, I want a gafrc file (or something) that
>   tells me where sym and sub_sheets are (./sym and ./sub_sheet)
> 4, when I cd /<some_path>/top/sub_proj_a, I want a gafrc file (or something) that
>   tells me where sym and sub_sheets are (../sym and ../sub_sheet)
> 5, when I cd /<some_path>/top/sub_proj_a/sub_aa, I want a gafrc file (or something) that
>   tells me where sym and sub_sheets are (../../sym and ../../sub_sheet)
> 6, thoose config files (gafrc) better be the same (e.g. with soft links) so that I
>   don't need to maintain more than one config file

Ah, now I understand.

On Fri, 4 Dec 2020, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> 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) ?

Well, "the usual answer" would be to cd into the top directory and start 
gschem from there.  If this doesn't work for your workflow, the answer is 
to write some script that guesses where to find the libraries, just as you 
did.  AFAIK, there's no way to do this with non-executable configuration 
files, but these aren't deprecated, so no need to worry about this.

If there's anything I missed, please let me know.

Roland

- Raw text -


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