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 To: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] config files In-Reply-To: <20201204201700.1584C82C622B@turkos.aspodata.se> Message-ID: References: <20201204092821 DOT 0E29982C622B AT turkos DOT aspodata DOT se> <20201204201700 DOT 1584C82C622B AT turkos DOT aspodata DOT se> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed 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 Precedence: bulk On Fri, 4 Dec 2020, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote: > 3, when I cd //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 //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 //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