@whitequark @parzivalwolfram @jannem @dalias @unnick fork is quite annoying, i agree
But bash isn't the POSIX C API. You don't have to write fork()'s to use a shell script
Top-level
@whitequark @parzivalwolfram @jannem @dalias @unnick fork is quite annoying, i agree 22 comments
@whitequark@mastodon.social @wyatt8740@tech.lgbt @parzivalwolfram@infosec.exchange @jannem@fosstodon.org @dalias@hachyderm.io @unnick@wetdry.world real language and seeing CMakeLists.txt threw me for a spin. I fucking hate writing cmake but I hate using anything that's not cmake 😭 @whitequark @wyatt8740 @jannem @dalias @unnick question: what if csh from 1989 is the only scripting language available to you, and there's no compilers available on a target system except K&R as? i'm working on a project where this is the entire issue, and it's... not fun. this is the precise case where that "consider using bash to build GCC because some cases in other shells make the ./configure script take literal days" warning actually happens lol @parzivalwolfram @whitequark @jannem @dalias @unnick i was about to mention csh, actually. Lol. There are so many things worse than a bourne shell @parzivalwolfram @wyatt8740 @jannem @dalias @unnick I bring a c89 single file wasm interpreter, then see step 1 @whitequark @wyatt8740 @parzivalwolfram @jannem @dalias @unnick I'm in a project using cmake and I don't like it. (I prototyped a replacement of our build stuff in omake in finite time...) But definitely less bad than autohell. @project1enigma @whitequark @parzivalwolfram @jannem @dalias @unnick I'm a fan of writing a makefile and telling people to figure it out. Sure, it pissed me off when i started, but once I figured out how makefiles work I appreciated them a lot more @wyatt8740 @whitequark @parzivalwolfram @jannem @dalias @unnick make has its limitations especially in really big multi directory source trees like ours. omake is enough make like, but with multi directory stuff just working really correctly. And fast. That's why I used that for my prototype alternative build. @wyatt8740 @whitequark @parzivalwolfram @jannem @dalias @unnick Long ago we did have a gmake based build by yours truly in fact. @wyatt8740 @project1enigma @parzivalwolfram @jannem @dalias @unnick I probably write makefiles better than you do and this is exactly why I avoid it inflicting it on others: as a matter of basic compassion @whitequark @wyatt8740 @project1enigma @jannem @dalias @unnick i don't mind projects with makefiles that are like 30 lines at most, where it's just a shell script but it's kept around for build systems and such. when it's a 30KB file full of high-level shell wizardry... i just have to hope i don't have to dig through it and that it just works. @parzivalwolfram @wyatt8740 @project1enigma @jannem @dalias @unnick one of my least favorite makefiles used a load bearing rot13 in the middle @whitequark @wyatt8740 @project1enigma @jannem @dalias @unnick WHY??? why would you ever??? @whitequark @project1enigma @parzivalwolfram @jannem @dalias @unnick Wow, so humble. @wyatt8740@tech.lgbt @wyatt8740 @project1enigma @parzivalwolfram @jannem @dalias @unnick Only responding in kind =^_^= @whitequark @project1enigma @parzivalwolfram @jannem @dalias @unnick where was I a prick who said that I was better at programming than you? @wyatt8740 @project1enigma @parzivalwolfram @jannem @dalias @unnick here? https://mastodon.social/@wyatt8740@tech.lgbt/112520914726012006 or maybe here? https://mastodon.social/@wyatt8740@tech.lgbt/112519833937117704 there's many to choose from @whitequark @project1enigma @parzivalwolfram @jannem @dalias @unnick The first link is clearly not me saying "i'm a better programmer." I am saying that I appreciate the simplicity of a makefile compared to dealing with cmake As for the second, i said that because YOU implied I was incompetent for liking bourne shells. Jerk. Blocking now. @wyatt8740 @project1enigma @parzivalwolfram @jannem @dalias @unnick have fun living in the eighties~ @whitequark @wyatt8740 @project1enigma @jannem @dalias @unnick cmake is still an eighties-quality tool, it can't handle being used in buildroot 90% of the time without manual intervention and the nightlies need cmake to build cmake, so that's gonna be fun to look forward to later considering that got pkg-config (or whatever it was, i forget the name) replaced with a rewritten tool by most distros pretty fast. @parzivalwolfram @wyatt8740 @project1enigma @jannem @dalias @unnick yeah cmake is fucking awful |
@wyatt8740 @parzivalwolfram @jannem @dalias @unnick shell scripts are for automating admin tasks. write your build system in a real language, such as CMakeLists.txt (still more real than bash)