hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.4K
active users

Debugging a makefile, as one does..

turns out...

zip(1) exits with code 12 if it "has nothing to do"

mother fucker we have a code for that already it's called zero. There's *got* to be a history here and I wanna know it.

@whack@hachyderm.io I sympathize. I had to debug the same issue before at a previous job; build scripts breaking because zip return codes. I don't remember how I ended up handling them. Might have wrapped zip in a shell script that checked for last $? exit code or something, not sure, it was a long time ago.

Jordan Sissel

@rozenglass Always weird finding surprising software behavior; I check the exit code and move on - `x=$?; [ "$x" -eq 0 -o "$x" -eq 12 ] || exit $x` -