X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=zlO58vgibLHc+Fqtfg50ZojRciuEu8hFLbFBE/UDdm8=; b=Q6YUMZxu5HFbIqUGXIURnbqeXYKwW+ZHzRAsW9gS02EqeIASl/b7uxk9DQIibxFl/U s56XpE2N6ULpkD5RW5ccYpPrgiKgcTfkH/GykMQv2KbHqGApiCHOPaXeN6cVDQaRrEsZ NdozYWZ0pqeZX16SSZs80cQDlKdQWm9fJ+tNwLmmzZx1/aUwweDaPX7LvOb/nR7jhvjm PxdBsStPKNGOVwpcatefE6fJ0h1LWB8pylOZUENXf4P63VYHtwlUJ3/X64f3BaBM+FRT wS/jRlTvtn/uCFIDqn5KntGMx7fuko41Mf3mRyLoerXKKGxgipPkBXhIpn/toui2p436 TUmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to; bh=zlO58vgibLHc+Fqtfg50ZojRciuEu8hFLbFBE/UDdm8=; b=kRmKw795mMolQWDa8KdSkkgJJ3hLySkUY6sq8rdLR65vHRWP2pApgjqXIiM/ln6NQK ty7GHNXK46888DfvqnpQhgmvl6sJmXiuLYnKSXxu37NXymGL19FnUatY5jkazW7t5Xtf kPqbiDb0zfT2I5rW+MFJFnmTKJpDoGx1y8Bi34nLGZxicJv9YsxDBjuuimBWqhHLBHZb t1FGacFZ+g0MjQi4UCOXPrNAbO3goIfidwMHzA8UBiFtiuAZXenUnf75/QKFJsr9AorZ qw+OntzQqao00o7K1c4Ju/0zDDNNHSQZEGYvO/x082Do3eHETt8H0bXlU04v15ghN31j mRig== X-Gm-Message-State: AOAM533bw74EcA+5CozGTJEopAOnHm51winGB23GG9vri+UWMh4Ouhxj IgxMa6ch7Y3rvk7WRoarHb5BIVayZos= X-Google-Smtp-Source: ABdhPJyMPh8qRjxTuxoJsH6c5Mq3SJgvEKLP9KpWRzBD5Pbnv4v+sAmWpMlGto4EkecZbZKvSj4vIw== X-Received: by 2002:a05:6512:159:: with SMTP id m25mr9076953lfo.73.1618872381446; Mon, 19 Apr 2021 15:46:21 -0700 (PDT) From: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" X-Google-Original-From: Vladimir Zhbanov Date: Tue, 20 Apr 2021 01:46:20 +0300 To: geda-user AT delorie DOT com Subject: Re: [geda-user] system wide config Message-ID: Mail-Followup-To: geda-user AT delorie DOT com References: <20210417120805 DOT 37DAA824EAA0 AT turkos DOT aspodata DOT se> <20210417144426 DOT E4238824EAA0 AT turkos DOT aspodata DOT se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210417144426.E4238824EAA0@turkos.aspodata.se> 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 Sat, Apr 17, 2021 at 04:44:26PM +0200, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote: > Vladimir: > > On Sat, Apr 17, 2021 at 02:08:05PM +0200, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote: > ... > > > But for some projects it would be nice if I could start > > > lepton/geda an a clean plate. > > Lepton has the 'LEPTON_INHIBIT_RC_FILES' environment variable. It > > is of limited usage and may be dropped some day. If you would > > make it more clear what the 'clean plate' is in this case and how > > to support it, we could do better. > > This is about libraries and the reset thing would probably suffice. > > I a had a customer and they wanted all their symbols etc. to be > within the same repository (git in this case, but it could be > whatever), with no accidental use of any lib outside of that top > directory. > > There was separate dirs for each subproject, a top .sch with source > symbols pointing to each subdirs "top" sch which was about one pcb each > but there could be multiple pcbs for each subdir. But you could traverse > the whole hierarchy starting from the top node, or a subtree starting > from some node (I could possible put in a "up" src symbol). > > Now all thees should reference the same symbol library dir, but since > the repo could be checked out at different places in the local file > system I couldn't use absolute paths. > > So I used something like: > $ cat gafrc > (reset-component-library) > (reset-source-library) > > (if (access? "sym" R_OK) > (begin > (source-library "_sub_page") > (component-library "sym") > ... > ) > (begin > (source-library "../_sub_page") > (component-library "../sym") > ... > ) > ) > > with links from each subdir (ln -s ../gafrc .) > and I could open the top sch, or a subdir sch and get the same > libraries. > > Now this was only two directory levels, and it wouldn't scale well to > more. > > So, what's the "best" way to solve that... > You could do 'ln -s ../sym' in each of the subdirs and then the commands in gafrc for sub-pages were superfluous. Vladimir