Add configuration file include directive

To include the contents of another configuration file simply do e.g.:

[include raspberrypi.conf]

Also, included file can include other files which can include other
files etc.

This feature is useful for managing many configuration files and sharing
configuration files with others.
This commit is contained in:
Martin Lund 2024-07-18 21:01:26 +02:00
parent 14963032c3
commit 725423c50c
4 changed files with 144 additions and 19 deletions

10
TODO
View file

@ -1,13 +1,3 @@
* Add support for nested configuration files
Add "include" directive to make it possible to include a configuration file
from another. For example:
[include work/config]
The feature should support including files that include other files etc.
(multi level nesting).
* Porting layer to support native win32 builds.
Some of the work that needs to be done: