Project-agnostic helpers for use with autosetup #76
sgbeal
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It was recently my pleasure to port the sqlite project from autotools to autosetup1. Part of that process involved creating utility code for autosetup and, because i use autosetup in a number of trees, i split much of that utility code into a project-agnostic collection which can be re-used across my various projects (some of it was derived from such projects but is not actually used in the sqlite tree).
The current state of that is:
https://sqlite.org/src/file/autosetup/proj.tcl
It's my hope that something in there will be of use to other autosetup users, with the following caveats:
That particular copy of that particular file is the "canonical" version of that file, and is intended to be copy/pastable into arbitrary autosetup-using trees, but it also makes no API stability guarantees. That is: any of the functions defined there may undergo interface changes at any time, as it suits the sqlite project.
TCL is not my "native language," so parts of this code may well not follow idioms which experienced TCL coders would have chosen.
Trivia: approximately 1/3rd of the sqlite project's configure code is in that file. The rest is fairly project-specific and is in its own module.
Footnotes
Build-process hacking has long been a guilty pleasure of mine. ↩
Beta Was this translation helpful? Give feedback.
All reactions