ROBSD-CONFIG(8) System Manager's Manual ROBSD-CONFIG(8)

robsd-configrobsd configuration utility

robsd-config -m mode [-v var=val] [-]

The robsd-config utility parses the configuration for all robsd utilities. In addition, lines read from standard input are interpolated and written to standard output. Interpolation allows configuration variables on the form ${variable} to be substituted with the corresponding value. The following additional variables are also available during interpolation for all modes:

CPU architecture.
The current invocation directory rooted in robsddir.
Path to comment rooted in builddir.
inet(4) address associated with the egress interface.
inet6(4) address associated with the egress interface.
Kernel architecture.
Number of online processors.
Directory used by robsd-clean(8) while cleaning out old invocations.
Temporary directory rooted in builddir.

Additional variables in robsd mode:

Release directory for the src tree rooted in builddir.
Release directory for the xenocara tree rooted in builddir.

Additional variables in robsd-cross mode:

The target argument passed to robsd-cross(8).

Additional variables in robsd-regress mode:

Unique rdomain(4), incremented on every reference.
All configured regression tests.
Additional directories requiring an object directory.
Environment variables for a given regression test.
Quiet option for a given regression test.
Root option for a given regression test.

The options are as follows:

mode
Mode used to indicate the kind of configuration.
var=val
Define an additional configuration variable available during interpolation.
-
Read and interpolate lines from standard input.

$ echo '${regress}' | robsd-config -m robsd-regress -
bin/csh bin/ksh sys/nfs
$ echo '${regress-sys/nfs-root}' | robsd-config -m robsd-regress -
1

The robsd-config utility exits 0 on success, and >0 if an error occurs.

robsd-cross.conf(5), robsd-ports.conf(5), robsd-regress.conf(5), robsd.conf(5)

Anton Lindqvist <anton@basename.se>

June 10, 2022 OpenBSD 7.6