<?xml version="1.0" encoding="UTF-8"?>
<!-- **************************************************************************
.... For copyright and licensing terms, see the file named COPYING.
.... **************************************************************************
.-->
<?xml-stylesheet href="docbook-xml.css" type="text/css"?>

<refentry id="redo-ifdelete">

<refmeta xmlns:xi="http://www.w3.org/2001/XInclude">
<refentrytitle>redo-ifdelete</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">user commands</refmiscinfo>
<refmiscinfo class="source">redo</refmiscinfo>
<xi:include href="version.xml" />
</refmeta>

<refnamediv>
<refname>redo-ifdelete</refname>
<refpurpose>record dependencies</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>redo-ifdelete</command>
<arg choice='plain' repeat='rep'><replaceable>filename(s)</replaceable></arg>
</cmdsynopsis>
<cmdsynopsis>
<envar>REDOFLAGS</envar>=
<arg choice='opt'>--silent</arg>
<arg choice='opt'>--debug</arg>
<arg choice='opt'>--keep-going</arg>
<arg choice='opt'>--verbose</arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsection><title>Description</title>

<para>
<command>redo-ifdelete</command> is a is a dependency redcording utility that is run by a "do" script that is in turn invoked by <citerefentry><refentrytitle>redo</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
</para>

<para>
<command>redo-ifdelete</command> records that the current target (whose "do" script is being run) depends from the dependencies named <replaceable>filenames</replaceable>.
The dependency recorded is that the current target should be built if a <replaceable>filename</replaceable> is deleted.
In other words, the target depends from the existence of the dependencies.
</para>

<para>
If a <replaceable>filename</replaceable> denotes a file or directory that does not exist at the time that the command is run, then <command>redo-ifdelete</command> exits with a failure status.
If any of the dependencies are later deleted, the target will be considered out of date.
</para>

</refsection>

<refsection><title>OPTIONS</title>

<para>
<command>redo-ifdelete</command> supports the same command-line options, normally passed in environment variables rather than on the command line, and the same environment variables as <citerefentry><refentrytitle>redo-ifchange</refentrytitle><manvolnum>1</manvolnum></citerefentry> (q.v.).
It also has the same caveats about clearing the environment and closing open file descriptors.
</para>

</refsection>

<refsection><title>Author</title>
<para><author><personname><firstname>Jonathan</firstname> <surname>de Boyne Pollard</surname></personname></author></para>
</refsection>

</refentry>
