run-redir man page

run-redir — run program but redirect some resulting files


run-redir COMMAND-TO-RUN

run-redir -p | --print


This program is intended to make it possible to run install scripts that do not support the DESTDIR convention, and yet have their resulting files redirected elsewhere. Where possible, use make-redir instead, as that provides a simpler higher-level interface for common cases.

In the first form, run the COMMAND-TO-RUN, but wrap certain programs so that any files they write will be redirected to a different subdirectory if they were to have been stored in a privileged directory (like "/usr/bin"). The different subdirectory is specified by REDIR_DESTDIR or DESTDIR, with the former taking precedence.

With the "-p" or "--print" option, just print the directory containing the redirecting (wrapping) scripts and exit. The run-redir program is installed with a default value of the directory containing the wrapping scripts; you can override this default by setting the environment variable RUN_REDIR_SCRIPTDIR to point to a different directory of wrapping scripts.

See make-redir(1) for much more information on this program. More background information is here:


David A. Wheeler

Reporting Bugs

Report bugs to <dwheeler, at, dwheeler dot com>

See Also


Referenced By


February 2009 auto-destdir User Commands