From 1308eb0d740a687161641d52dabad8c0f849db08 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Apr 2023 14:28:23 +0200 Subject: Add support for negation in config.install.filter --- doc/manual.cli | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'doc/manual.cli') diff --git a/doc/manual.cli b/doc/manual.cli index 101493c..7f6b730 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -6328,14 +6328,20 @@ modifier to only apply to symlink filesystem entries. For example: $ b config.install.filter='\"*.so\"@false,symlink' \ -Note that this mechanism only affects what gets physically copied to the -installation directory without affecting what gets built for install or the -view of what gets installed at the \c{buildfile} level. For example, -given the \c{include/@false *.a@false} filters, static libraries will still be -built (unless arranged not to with \c{config.bin.lib}) and the \c{pkg-config} -files will still end up with \c{-I} options pointing to the header -installation directory. Note also that this mechanism applies to both -\c{install} and \c{uninstall} operations. +A filter can be negated by specifying \c{!} as the first pair. For example: + +\ +$ b install config.install.filter='! include/@false \"*.a\"@false' +\ + +Note that the filtering mechanism only affects what gets physically copied to +the installation directory without affecting what gets built for install or +the view of what gets installed at the \c{buildfile} level. For example, given +the \c{include/@false *.a@false} filters, static libraries will still be built +(unless arranged not to with \c{config.bin.lib}) and the \c{pkg-config} files +will still end up with \c{-I} options pointing to the header installation +directory. Note also that this mechanism applies to both \c{install} and +\c{uninstall} operations. \N|If you are familiar with the Debian or Fedora packaging, this mechanism is somewhat similar to (and can be used for a similar purpose as) the Debian's -- cgit v1.1