owenthewizard / i3lock-next

Create a fancy image to use with i3lock.
MIT License
63 stars 9 forks source link

Build files suck and are nasty #20

Open owenthewizard opened 6 years ago

owenthewizard commented 6 years ago

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

samuelhnrq commented 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?

owenthewizard commented 6 years ago

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

samuelhnrq commented 6 years ago

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