Open owenthewizard opened 6 years ago
There is a high chance this is way out of my league, but I don't even bash. Why that script? What does it fix? How a different build tool would help?
@samosaara The script replaces the DEFAULT_FOO values in the help menu with the actual compile-time default. I don't know for sure if autotools or another tool has a better way.
Hm... So the thing is, you have a header file with the default values and the help file should reflect those values? And currently you replace the values through a bash script?
If I understand the problem correctly, I think I would be able to make a meson build setup. But I guess that would involve setting the values in the meson file (witch has a very simple DSL) which then would be able to configure both the header and the help file. More specifically this
For example, take a look at replace_yucc_defaults.sh. Disgusting. A GNU autotools setup would be preferred.