i3lock-next icon indicating copy to clipboard operation
i3lock-next copied to clipboard

Build files suck and are nasty

Open owenthewizard opened this issue 8 years ago • 3 comments

For example, take a look at replace_yucc_defaults.sh. Disgusting. A GNU autotools setup would be preferred.

owenthewizard avatar Feb 18 '18 08:02 owenthewizard

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?

samuelhnrq avatar Mar 31 '18 16:03 samuelhnrq

@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.

owenthewizard avatar Mar 31 '18 22:03 owenthewizard

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

samuelhnrq avatar Mar 31 '18 23:03 samuelhnrq