Note that the path in LibName1 can also be full filesystem path, or relative to any of the library search paths, but always excludes “.lib” extension. KiCad automatically adds the path of the current project and standard KiCad installation libraries to the library search path. (I use Windows but the same principle applies, use forward slash “/” for Unix or Windows)
@bobc That worked great, thanks. I’ll have to figure out how to edit those library entries in the .pro file when it’s uploaded with the rest of the project files. I’ll probably use sed for that task.
We have a standard practice for a guy who starts a design the first thing he does is open a schematic place a symbol and save, so the -cache.lib is created. Then he adds the -cache.lib to the list of used libraries and places it at the top of the list with eeschema. Then the project can be added to the VCS and shared with others.
Once the cache file is listed at the top, are any of the other library entries below it needed anymore? I’m asking because I’m trying to figure out if I can reduce the complexity of having to shift every LibName entry down in the script. If I could just edit the first one and then remove the rest that would make things a little easier, but only makes sense if the other libraries aren’t needed once the cache library has been added at the top.