| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-help-bounces using -f |
| X-Recipient: | geda-help AT delorie DOT com |
| Received-SPF: | None identity=pra; client-ip=207.181.246.185; |
| receiver=smtp01.lnh.mail.rcn.net; | |
| envelope-from="bobgus AT rcn DOT com"; | |
| x-sender="bobgus AT rcn DOT com"; | |
| x-conformance=sidf_compatible | |
| Received-SPF: | Neutral identity=mailfrom; client-ip=207.181.246.185; |
| receiver=smtp01.lnh.mail.rcn.net; | |
| envelope-from="bobgus AT rcn DOT com"; | |
| x-sender="bobgus AT rcn DOT com"; | |
| x-conformance=sidf_compatible; | |
| x-record-type="v=spf1" | |
| Received-SPF: | None identity=helo; client-ip=207.181.246.185; |
| receiver=smtp01.lnh.mail.rcn.net; | |
| envelope-from="bobgus AT rcn DOT com"; | |
| x-sender="postmaster AT hoho4 DOT chidig DOT com"; | |
| x-conformance=sidf_compatible | |
| Message-ID: | <1355234721.14812.42.camel@hoho6.chidig.com> |
| Subject: | Re: [geda-help] Dirt Dumb Level.. |
| From: | Bob Gustafson <bobgus AT rcn DOT com> |
| To: | geda-help AT delorie DOT com |
| Date: | Tue, 11 Dec 2012 08:05:21 -0600 |
| In-Reply-To: | <20121211084739.C023482204B9@turkos.aspodata.se> |
| References: | <1355205873 DOT 14812 DOT 39 DOT camel AT hoho6 DOT chidig DOT com> |
| <20121211084739 DOT C023482204B9 AT turkos DOT aspodata DOT se> | |
| X-Mailer: | Evolution 3.4.4 (3.4.4-2.fc17) |
| Mime-Version: | 1.0 |
| X-Junkmail-Whitelist: | YES (by domain whitelist at mr16.lnh.mail.rcn.net) |
| Reply-To: | geda-help AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-help AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
Cool - thanks much.
One needs to get one's head around Guile before approaching gEDA..
Perhaps a mini-note somewhere in the beginning tutorial..
Yes, I know - write it myself.
Thanks again
Bob G
On Tue, 2012-12-11 at 09:47 +0100, Karl Hammar wrote:
> Bob G:
> > I am just starting with gEDA...
>
> Well, welcome then.
>
> ...
> > Then I decided to get fancy and wrote gafrc file like this:
>
> The gafrc should comply with guile (lisp) syntax.
>
> > HOME="/home/user1/TapeDrive/"
>
> Everything has to start with a ( and end with a ).
> So the above should be written like
>
> (define HOME "...")
>
> For things like the above, you can test it by running guile:
>
> $ guile
> guile> (define HOME "...\n")
> guile> (display HOME)
> ...
> guile> (quit)
> $
>
> > (define gedasymbols "${HOME}/gschem-sym")
>
> As you can see, guile doesn't evaluate ${HOME} for you:
>
> guile> (define gedasymbols "${HOME}")
> guile> (display gedasymbols)
> ${HOME}guile>
>
> Note:
> since gedasymbols doesn't contain "\n", the output and
> the prompt (guile>) will be on the same line
>
> try (getenv "HOME") and instead:
>
> guile> (define gedasymbols (getenv "HOME"))
> guile> (display gedasymbols)
> /home/karlguile>
>
> to combine the (getenv ...) and the "geshem-sym", you can use
> build-path, but that is not in guile so you cannot test it seperately
> try (in you gafrc file):
>
> (define gedasymbols (build-path (getenv "HOME") "gschem-sym"))
>
> > (component-library "${HOME}/gschem-sym")
>
> dito.
>
> > and it didn't work.
> ...
> > I looked around for an example gafrc file, but nothing with the
> > definition of HOME. Is it bash syntax, or guile syntax?
> ...
>
> guile
>
> This is my gafrc:
>
> (define home (getenv "HOME"))
> (load-scheme-dir (build-path home ".gEDA/gafrc.d"))
> (component-library-search "/Net/cvs/cvs.gedasymbols.org/www/user" "cvs")
>
> (source-library "${HOME}/git/openhw/share/gschem/include")
> (component-library-search (build-path home "git/openhw/share/gschem") "lcl")
>
> (component-library "include")
> (component-library ".")
>
> ;(always-promote-attributes '("refdes"))
>
> (source-library "include")
> (source-library ".")
>
> Note that source-library do expand the environment variable, it does
> that internally. We could possible add that functionality to
> load-scheme-dir and others.
>
> Regards,
> /Karl Hammar
>
> -----------------------------------------------------------------------
> Aspö Data
> Lilla Aspö 148
> S-742 94 Östhammar
> Sweden
> +46 173 140 57
>
>
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |