1RUN-REDIR(1)                     User Commands                    RUN-REDIR(1)
2
3
4

NAME

6       run-redir - run program but redirect some resulting files
7

SYNOPSIS

9       run-redir COMMAND-TO-RUN
10
11       run-redir -p | --print
12

DESCRIPTION

14       This  program  is  intended  to make it possible to run install scripts
15       that do not support the DESTDIR convention, and yet have their  result‐
16       ing   files  redirected  elsewhere.   Where  possible,  use  make-redir
17       instead, as that provides a simpler higher-level interface  for  common
18       cases.
19
20       In the first form, run the COMMAND-TO-RUN, but wrap certain programs so
21       that any files they write will be redirected to a  different  subdirec‐
22       tory  if  they were to have been stored in a privileged directory (like
23       "/usr/bin").  The different subdirectory is specified by  REDIR_DESTDIR
24       or DESTDIR, with the former taking precedence.
25
26       With  the "-p" or "--print" option, just print the directory containing
27       the redirecting (wrapping) scripts and exit.  The run-redir program  is
28       installed with a default value of the directory containing the wrapping
29       scripts; you can override this default by setting the environment vari‐
30       able  RUN_REDIR_SCRIPTDIR to point to a different directory of wrapping
31       scripts.
32
33       See make-redir(1) for much more  information  on  this  program.   More
34       background information is here: http://www.dwheeler.com/essays/automat
35       ing-destdir.html
36

AUTHOR

38       David A. Wheeler
39

REPORTING BUGS

41       Report bugs to <dwheeler, at, dwheeler dot com>
42
44       Copyright © 2009 Institute for Defense Analyses.   Released  under  the
45       "MIT" license.
46       This  is  free  software:  you  are free to change and redistribute it.
47       There is NO WARRANTY, to the extent permitted by law.
48

SEE ALSO

50       make-redir(1)
51
52
53
54auto-destdir                     February 2009                    RUN-REDIR(1)
Impressum