~ chicken-core (chicken-5) /chicken-do.mdoc
Trap1.\" Copyright (c) 2017-2022, The CHICKEN Team2.\" All rights reserved.3.\"4.\" Redistribution and use in source and binary forms, with or without5.\" modification, are permitted provided that the following conditions6.\" are met:7.\" 1. Redistributions of source code must retain the above copyright8.\" notice, this list of conditions and the following disclaimer.9.\" 2. Redistributions in binary form must reproduce the above copyright10.\" notice, this list of conditions and the following disclaimer in the11.\" documentation and/or other materials provided with the distribution.12.\" 3. The name of the authors may not be used to endorse or promote products13.\" derived from this software without specific prior written permission.14.\"15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR16.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES17.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.18.\" IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.25.\"26.\"27.Dd Apr 26, 201728.Dt CHICKEN-DO 129.Os30.Sh NAME31.Nm chicken-do32.Nd run a shell command unless the target exists and any dependency is33not newer than the target34.Sh SYNOPSIS35.Nm36.Op Fl q37.Op Fl h38.Op Fl -39.Ar TARGET ...40.Cm :41.Ar DEPENDENCY ...42.Cm :43.Ar COMMAND ...44.Sh DESCRIPTION45If the files46.Em TARGET ...47do not exist, or if any of the files in48.Em DEPENDENCY ...49are newer than one of the target files, then execute the shell commands in50.Em COMMAND ... .51.Pp52The program accepts the following options:53.Bl -tag -width Ds54.It Fl h55Show usage and exit.56.It Fl q57Quiet operation - do not print shell commands when they are executed.58.It Fl -59Treat all following tokens as target filenames, even if they begin with a60.Fl61character.62.El63.Sh EXIT STATUS64.Ex -std65.Sh EXAMPLES66Build a C program from sources:67.Pp68.Dl $ chicken-do prg : prg.c inc.h : gcc prg.c -o prg69.Sh SEE ALSO70.Xr chicken 1 ,71.Xr chicken-status 1 ,72.Xr chicken-install 1 ,73.Xr chicken-uninstall 1 ,74.Xr csc 175.Pp76More information can be found in the77.Lk http://wiki.call-cc.org/manual/index "CHICKEN User's Manual".78.Sh AUTHORS79.An The CHICKEN Team80.Sh BUGS81Submit bug reports by e-mail to82.Mt chicken-janitors@nongnu.org