This build tool which is made using the waf meta build framework (waf.io), encapsulates my gEDA/lepton build flow for schematic capture and netlisting.
See section "4.2.2. Loading and using Waf tools" in waf.io/book
- Waf website: the meta build system https://waf.io/
- Waf documentation : https://waf.io/apidocs/index.html
- The Waf Book : https://waf.io/book/
- Waf source code https://gitlab.com/ita1024/waf
replace 'sed' with 'sedpy' : https://github.com/mritunjaysharma394/sedpy
Also see gSim for pre/post processing of schematics and netlists (https://github.com/pfabo/gSim)