Mail Archives: geda-user/2020/12/04/04:48:02
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 -