OpenBSD manual page server

Manual Page Search Parameters

PKG_SUBST(1) General Commands Manual PKG_SUBST(1)

pkg_substsubstitute variables' values in files

pkg_subst [-c] [-D name [=value]] [-g -group] [-m -mode] [-o -owner] [file ...]

pkg_subst is used within the ports tree to substitute variable values, using the exact same conventions used by pkg_create(1). Constructs like ${VAR} will be replaced with the variable value, according to -D name=value options.

The options are as follows

Copy and substitute. Number of file arguments must be even. They are paired as src1 dest1, src2 dest2 ... and each src file is substituted and copied into the corresponding dest file .
name=value
Define name to value.
group
Change group of destination file to group.
mode
Change mode of destination file to mode.
owner
Change owner of destination file to owner.

If no file arguments is given, pkg_subst acts as a filter from stdin to stdout.

Without -c, each file is backed up as file.beforesubst before the substitution occurs.

pkg_create(1), install(1).

April 27, 2013 OpenBSD-5.5