| 1 ## |
1 ## |
| 2 ## rc.pod -- RPM Auxiliary Tool (Manual Page) |
2 ## rc.pod -- RPM Auxiliary Tool (Manual Page) |
| 3 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/> |
3 ## Copyright (c) 2000-2012 OpenPKG GmbH <http://openpkg.com/> |
| 4 ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/> |
|
| 5 ## |
4 ## |
| 6 ## Permission to use, copy, modify, and distribute this software for |
5 ## This software is property of the OpenPKG GmbH, DE MUC HRB 160208. |
| 7 ## any purpose with or without fee is hereby granted, provided that |
6 ## All rights reserved. Licenses which grant limited permission to use, |
| 8 ## the above copyright notice and this permission notice appear in all |
7 ## copy, modify and distribute this software are available from the |
| 9 ## copies. |
8 ## OpenPKG GmbH. |
| 10 ## |
9 ## |
| 11 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
10 ## THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED |
| 12 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 13 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 14 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
| 15 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 16 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 55 |
54 |
| 56 =head1 USAGE |
55 =head1 USAGE |
| 57 |
56 |
| 58 =over 4 |
57 =over 4 |
| 59 |
58 |
| 60 =item B<@l_prefix@/bin/openpkg rc> [B<-s>|B<--silent>] [B<-v>|B<--verbose>] [B<-d>|B<--debug>] [B<-k>|B<--keep>] I<package> I<command> [I<command> ...] |
59 =item B<@l_prefix@/bin/openpkg rc> [B<-s>|B<--silent>] [B<-v>|B<--verbose>] [B<-d>|B<--debug>] [B<-k>|B<--keep>] [B<-D>|B<--define> I<name>=I<value>] I<package> I<command> [I<command> ...] |
| 61 |
60 |
| 62 B<Runcommand Execution.> This executes one or more specified |
61 B<Run-Command Execution.> This executes one or more specified |
| 63 I<command>s in a particular I<package> or in all installed packages if |
62 I<command>s in a particular I<package> or in all installed packages if |
| 64 I<package> is "C<all>". Option B<--silent> can be used to explicitly |
63 I<package> is "C<all>". Option B<--silent> can be used to explicitly |
| 65 disable progress messages on C<stderr>. Option B<--verbose> can be used |
64 disable progress messages on C<stderr>. Option B<--verbose> can be used |
| 66 to explicitly enable progress messages on C<stderr>. By default, B<rc> |
65 to explicitly enable progress messages on C<stderr>. By default, B<rc> |
| 67 automatically determines whether progress messages should be displayed |
66 automatically determines whether progress messages should be displayed |
| 68 or not depending on whether C<stderr> is connected to a terminal device. |
67 or not depending on whether C<stderr> is connected to a terminal device. |
| 69 Option B<--keep> can be used for debugging purposes to keep the |
68 Option B<--keep> can be used for debugging purposes to keep the |
| 70 temporary files were generated during internal processing. |
69 temporary files were generated during internal processing. Option |
| |
70 B<--define> can be used to on-the-fly re-define a configuration variable |
| |
71 I<name> with I<value>. |
| 71 |
72 |
| 72 =item B<@l_prefix@/bin/openpkg rc> B<-p>|B<--print> I<package> I<command> [I<command> ...] |
73 =item B<@l_prefix@/bin/openpkg rc> B<-p>|B<--print> I<package> I<command> [I<command> ...] |
| 73 |
74 |
| 74 B<Runcommand Printing.> This is like the run-command execution (see |
75 B<Run-Command Printing.> This is like the run-command execution (see |
| 75 above), but instead of immediately executing all involved individual |
76 above), but instead of immediately executing all involved individual |
| 76 run-command scripts, they are concatenated (but with all configuration |
77 run-command scripts, they are concatenated (but with all configuration |
| 77 parts reduced to a single configuration part) and printed to C<stdout>. |
78 parts reduced to a single configuration part) and printed to C<stdout>. |
| 78 Use this for debugging or post-processing purposes. |
79 Use this for debugging or post-processing purposes. |
| 79 |
80 |
| 80 =item eval `B<@l_prefix@/bin/openpkg rc> B<-e>|B<--eval> I<package> I<command> [I<command> ...]` |
81 =item eval `B<@l_prefix@/bin/openpkg rc> B<-e>|B<--eval> I<package> I<command> [I<command> ...]` |
| 81 |
82 |
| 82 B<Runcommand Evaluation.> This is like the run-command execution |
83 B<Run-Command Evaluation.> This is like the run-command execution |
| 83 (see above), but the resulting exported shell environment variables |
84 (see above), but the resulting exported shell environment variables |
| 84 are output to a temporary file as a (Bourne-Shell or C-Shell syntax) |
85 are output to a temporary file as a (Bourne-Shell or C-Shell syntax) |
| 85 shell script, suitable for evaluation within the shell environment |
86 shell script, suitable for evaluation within the shell environment |
| 86 of the caller. A one-line script is printed to C<stdout> which then |
87 of the caller. A one-line script is printed to C<stdout> which then |
| 87 "sources" (and immediately removes) this temporary file. This is |
88 "sources" (and immediately removes) this temporary file. This is |