-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfgf.8
108 lines (89 loc) · 2.12 KB
/
cfgf.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.TH cfgf 8 "2008-09-13" "cfgf documentation"
.SH NAME
cfgf \- update command for the configuration file generation framework
.SH SYNOPSIS
.B cfgf
.RI [ options ]
.RB [ --
.IR "make options" "] [" targets ]
.SH DESCRIPTION
.B cfgf
is used for updating the files handled
by the configuration file generation framework.
The framework is based on
.BR make "(1); the " cfgf
command is a front-end which sets up an appropriate
environement and invokes the cfgf makefile.
This manual page describes the
.B cfgf
command; for background information about
the configuration file generation framework,
please see
.BR cfgf (7).
.SH OPTIONS
The first arguments can consist of the options described below.
When an arguement which doesn't start with
.RB \*(lq - \*(rq
is encountered, or just after the special argument
.RB \*(lq -- \*(rq
has been encountered,
.B cfgf
stops parsing its own options.
The trailing arguments are passed to
.BR make .
.SH TARGETS
.TP
.B update
.SH ENVIRONMENT
.B CFGF_CONFIG
points to a configuration file
to be read by
.BR update-cfgf ,
which can define values
for the environment variables described here.
This file
has the syntax of a shell-script fragment,
and is directly included into
.B update-cfgf
itself,
which is a POSIX shell script.
As a consequence
the values in the configuration file
override those from the environment.
Setting
.RB $ CFGF_CONFIG
in the configuration file
has no effect.
By default,
.B /etc/cfgf/cfgf.conf
is used.
.B CFGF_WD
gives the working directory for the cfgf scripts,
where the built configuration files are stored.
Ametaphorically,
the directory
.B make
runs in.
This defaults to
.BR /var/lib/cfgf .
.B CFGF_VPATH
contains a space-separated list of directories
which are used as a search list
for source files.
.RB $ CFGF_WD
is implicitely
the first element of this list.
On systems where
.B make
does not support the VPATH feature,
the contents of these directories
is symlinked into
.RB $ CFGF_WD " before " make
is invoked.
The default value is
.BR /etc/cfgf:/usr/lib/cfgf:/usr/share/cfgf .
.B CFGF_MAKE
can point to an alternative command
to be used instead of
.BR make .
.SH EXIT STATUS