11 \h'-\w'\fB\\$1\ \fP'u'\fB\\$1\ \fP\c
25 .TH extract-profile 1 "3 May 2015" "distorted.org.uk key management"
27 extract-profile \- determine configuration using inheritance and substitution
31 .IR file | directory ...
35 utility reads a number of
37 configuration files from the named
41 combines the sections according to inheritance rules (described below),
42 performs substitutions on the values,
43 and writes the resulting effective contents of the named
49 named on the command line
50 causes files within to be examined:
51 specifically, each file whose name consists only of
52 upper- and lowercase letters,
60 other files are ignored,
64 (so, in particular, directories are not processed recursively).
65 The files within a directory are processed
66 in ascending lexicographic order.
67 It may be useful to prefix filenames with numbers
68 in order to ensure that they're read in the correct order.
69 .SS Command-line options
70 The following options are recognized.
74 of the options and commands
76 and exit successfully.
79 Print the version number
84 and exit successfully.
85 .SS Configuration data model
92 A property's name must consist only of
93 upper- and lowercase letters,
117 There is a special section
120 which is implicitly included by every other section.
121 .SS Configuration syntax
122 Configuration files are line-oriented.
123 Leading and trailing whitespace is always ignored.
124 There is no line-continuation syntax.
125 There are four kinds of lines.
128 consisting only of whitespace,
140 .IR "Section headings" ,
142 surrounded by square brackets
144 cause the following assignments,
145 as far as the next section heading
146 or the end of the file,
147 to define or override properties in the named section.
158 define (or override) direct properties
160 in the current section.
165 are optional and, if present, ignored.
173 Assignments preceding the first section header in a file
174 apply to the special section
179 may be defined multiple times in a section:
180 only the last definition is significant;
181 earlier definitions are silently ignored.
183 Pseudoproperties have names beginning with an at sign
185 The following pseudoproperties are recognized.
188 The value is a list of section names separated by whitespace.
189 The current section's inclusion list is set to
190 the corresponding named sections.
192 Sections may be defined in any order.
193 The same section may be defined more than once:
194 the effect is the same as a single section containing
195 all of the assignments of the individual sections
205 together with their inferiors.
206 It is an error if a section is its own inferior.
207 (Consequently, it is an error if
209 has a non-empty inclusion list.)
224 .I effective property
229 has a direct property named
233 has a direct property named
238 has an effective property named
243 consists of those sections out of
246 which have a direct property named
249 .I reduced defining set
252 consists of those sections in the
256 which have no superiors in the defining set.
258 If all of the sections in the reduced defining set for
260 assign the same value to
268 otherwise the configuration is erroneous.
271 according to these rules,
274 has a direct property
278 has an effective property
284 program's output consists of assignments
286 for the effective properties of the named
289 in an arbitrary order.
291 Mark Wooding, <mdw@distorted.org.uk>
293 .BR distorted-keys (7).