Retro68 icon indicating copy to clipboard operation
Retro68 copied to clipboard

Difficulty reading build-toolchain.bash due to Boolean conditionals

Open ryandesign opened this issue 4 years ago • 2 comments

I find it confusing that most of the Boolean conditionals in build-toolchain.bash check whether a variable != false or != true . It would be more straightforward to check if the variable = true or = false .

Furthermore, some of the Boolean variables indicate that something should be done (like BUILD_68K) while others indicate that something should not be done (like SKIP_THIRDPARTY). It would be clearer if all the Boolean variables had the same meaning—for example, change SKIP_THIRDPARTY to BUILD_THIRDPARTY and reverse the conditionals.

Would you accept a pull request making these changes?

ryandesign avatar Apr 17 '21 04:04 ryandesign

This confusion may have contributed for example to the mistake made in #122.

ryandesign avatar Apr 17 '21 05:04 ryandesign

Yes, I would, feel free to clean up.

In my defense, when I started that script, it was probably the first time I used shell as an actual programming language..

autc04 avatar Apr 18 '21 10:04 autc04