CHICKEN-DO(1)

πŸ“¦
version 6.0.0 Β· 3 versions
, in alpine 3.24, arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ chicken-do β€” the manual, but make it cute ✨

okay so bestie, welcome to the General Commands Manual page for chicken-do πŸ’– this is the little make-ish helper from the CHICKEN crew that runs a shell command unless the target already exists and nothing it depends on is newer. it's giving "make but tiny and unbothered". let's get into it 🫢


🌸 NAME 🌸

chicken-do β€” run a shell command unless the target exists and any dependency is not newer than the target πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

chicken-do [-q] [-h] [--] TARGET ... : DEPENDENCY ... : COMMAND ...

three little groups separated by colons, bestie. targets, then deps, then the command. iconic format honestly ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the whole vibe: if the files in TARGET ... don't exist, or if any of the files in DEPENDENCY ... are newer than one of the target files, then it goes ahead and executes the shell commands in COMMAND ... πŸƒβ€β™€οΈπŸ’¨

Otherwise? Nothing happens. No command. It just minds its business. periodt.

The program accepts the following options:

  • -h β€” show usage and exit. the "wait what does this do again" button πŸ™ˆ
  • -q β€” quiet operation, meaning it does not print shell commands when they are executed. stealth mode 🧚
  • -- β€” treat all following tokens as target filenames, even if they begin with a - character. so if your filename is out here starting with a dash and being dramatic, this is your girl πŸ’…

πŸ’€ EXIT STATUS πŸ’€

The chicken-do utility exits 0 on success, and >0 if an error occurs. no in-between, no chaos, just vibes ✨


🌈 EXAMPLES 🌈

Building a C program from sources, the classic:

$ chicken-do prg: prg.c inc.h: gcc prg.c -o prg

look at that colon usage. target, deps, command. chef's kiss πŸ‘‘ lowkey elegant fr fr


πŸ“ SEE ALSO πŸ“

chicken(1), chicken-status(1), chicken-install(1), chicken-uninstall(1), csc(1) β€” the whole friend group, go say hi 🫢

More information can be found in the CHICKEN User's Manual: http://wiki.call-cc.org/manual/index.


πŸ‘‘ AUTHORS πŸ‘‘

The CHICKEN Team πŸ’– (yes, all of them, they're the main characters)


πŸ’€ BUGS πŸ’€

Submit bug reports by e-mail to chicken-janitors@nongnu.org β€” they want to hear it, no cap πŸ“§


and that's the page, bestie!! this one came from the Debian build, dated Apr 26, 2017, and it lives at the top of CHICKEN-DO(1) in the manual. slay, go build something πŸ’…βœ¨

πŸ“¦ where this page comes from