chicken-do(1)

chicken-do1

Run a shell command unless the target exists and any dependency is not newer than the target

Usage

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

Overview

If the files TARGET ... do not exist, or if any of the files in DEPENDENCY ... are newer than one of the target files, then execute the shell commands in COMMAND ....

The program accepts the following options:

-h

Show usage and exit.

-q

Quiet operation - do not print shell commands when they are executed.

--

Treat all following tokens as target filenames, even if they begin with a - character.

Exit status

The chicken-do utility exits 0 on success, and >0 if an error occurs.

Examples

Build a C program from sources:

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

Releases

4 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12–13
  3. Arch

Authors

The CHICKEN Team

Bugs

Submit bug reports by e-mail to [email protected]

From chicken 6.0.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.