| 1 |
<!-- |
| 2 |
SPDX-FileCopyrightText: Peter Pentchev <[email protected]> |
| 3 |
SPDX-License-Identifier: BSD-2-Clause |
| 4 |
--> |
| 5 |
|
| 6 |
This is confget, a simple utility for parsing configuration files and |
| 7 |
extracting values from them. It currently parses INI-style files only, |
| 8 |
but support for other formats may come at some point in the future. |
| 9 |
|
| 10 |
The confget utility is mainly intended to be used in shell scripts for |
| 11 |
fetching values out of configuration files. |
| 12 |
|
| 13 |
To compile confget, your standard C library must provide one of two |
| 14 |
functions: either getline(3) on Linux or other systems or fgetln(3) on |
| 15 |
BSD-like systems. The confget build procedure should be able to |
| 16 |
autodetect the presence of a suitable line reading function; if it fails |
| 17 |
on your platform, please report this to the author! |
| 18 |
|
| 19 |
You may need to tweak the PCRE_CPPFLAGS and PCRE_LIBS variables to |
| 20 |
indicate the presence or lack of PCRE support, the location of |
| 21 |
the pcre2.h header file, and the name and location of the libpcre2-8.so |
| 22 |
library itself (or, if still using pcre instead of pcre2, the pcre.h |
| 23 |
header file and the libpcre.so library). |
| 24 |
|
| 25 |
Comments: Peter Pentchev <[email protected]> |