DH-EXEC-FILTER(1)
π DH-EXEC-FILTER β the dh-exec filter era π
okay bestie, welcome to dh-exec-filter, one of the little helper scripts that live inside the dh-exec manual (that's the dh-exec page, section 1, if we're being official about it). she's the filter queen. she does not do the work herself, she just vibes and pipes things through β¨
πΈ SYNOPSIS πΈ
#! /usr/bin/dh-exec
[hurd-i386 kfreebsd-any] debian/non-linux/some-file /usr/lib/my-package
<stage1> src/compiler1 /usr/bin
π¦ DESCRIPTION π¦
so here's the tea: this program is a sub-command of dh-exec(1), which means you do NOT run it directly. ever. not even once. π you run it through dh-exec instead β and dh-exec is sweet like that, because if you run it bare it automatically runs all the available sub-commands for you. or you can be explicit and do it with dh-exec --with=subst.
what is she, exactly? she's a wrapper around all the other filtering helpers, and she pipes the input file through all the available filtering helpers. it's up to those scripts to do the actual work β she's just the main character holding it all together π
β¨ SCRIPTS β¨
π dh-exec-filter-arch
filters out lines that are not for the current host architecture (i.e. the architecture the package is being built for, bestie β not some other girl's architecture).
a line can be pre-fixed or post-fixed with a bracketed list of architectures, and it'll be kept only if you're building for one of those architectures.
the filter supports negation and wildcards, using the exact same syntax as dpkg-architecture(1). slay.
introduced in version 0.13.
π§ dh-exec-filter-build-profiles
filters out lines that don't match the build profiles currently in effect. you can use the same syntax as in debian/control files. if any of the profiles match, the line is kept; otherwise it gets filtered out. no cap.
β οΈ if a profile is specified but DEB_BUILD_PROFILES is unset, an error will be thrown. so set your env vars, bestie, she's not playing.
introduced in version 0.13.
π dh-exec-filter-comments
removes commented lines and empty lines. that's it, that's the whole job. iconic, honestly. β¨
introduced in version 0.13.
π ENVIRONMENT π
DH_EXEC_SCRIPTDIRβ tells you which directory the command-specific scripts should be sought for. if it's not specified, scripts get searched for in/usr/share/dh-exec/.
π FILES π
$DH_EXEC_SCRIPTDIR/dh-exec-filter-*β the various scripts for the higher-level program. the whole squad π«Ά
π VERSIONS π
this sub-command was introduced in dh-exec version 0.13. she's been serving since day one of 0.13, fr fr.
π₯ SEE ALSO π₯
and that's the whole page, bestie π this was DH-EXEC-FILTER(1) from the dh-exec manual, dated 2024-02-27 β go filter something gorgeous, ily ππ¦
π¦ where this page comes from
- debian trixie: dh-exec 0.30 Β· GPL-3.0-or-later
- ubuntu noble: dh-exec 0.29build1 Β· GPL-3.0-or-later
- ubuntu questing: dh-exec 0.30
- ubuntu resolute: dh-exec 0.31 Β· GPL-3.0-or-later
- ubuntu stonking: dh-exec 0.31 Β· GPL-3.0-or-later
- Copyright 2011-2024 Software Freedom Conservancy, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms