DH_OCAMLINIT(1)
π dh_ocamlinit β the manual page, but make it bestie π
okay so this is dh_ocamlinit, a lil Perl script from the User Contributed Perl Documentation corner of the universe, and she's here to do one thing and one thing only: swap out ocaml variables in your debian/*.in files for their actual values. that's it. that's the job. and she does it flawlessly. π
β¨ NAME β¨
dh_ocamlinit β she substitutes ocaml variables in debian/*.in files with their corresponding value. like a glow-up but for text files. π
π¦ SYNOPSIS π¦
dh_ocamlinit [debhelper options]
πΈ DESCRIPTION πΈ
bestie. listen. dh_ocamlinit goes looking through your debian/*.in files and replaces every single variable she finds with the value that actually corresponds to it. the examples the page gives us are @OCAML_ABI@, @OCamlStdlibDir@ and @OCamlDllDir@ β iconic trio, no notes. π₯
but wait, there's more, and it's the fun part. β¨ the lines in those debian/*.in files get filtered by their prefix, and the rules are:
- lines prefixed with
OPTβ only kept when ocaml compilation to native code is supported π - lines prefixed with
BYTEβ only kept when compilation to native code is not supported π«Ά - lines prefixed with
DYNβ kept when dynamic linking is supported π
and if that's not enough substitution for you (greedy, love that for you), dh_ocamlinit also handles additional substitutions β you just specify them in the OCAMLINIT_SED environment variable. yep. env var. she reads it. she respects it. π
β¨ OPTIONS β¨
-dβ clean up the files that were generated from thedebian/*.infiles that are present, and then exit. π§Ή
okay so real talk:-dis deprecated. the manpage literally says it. do not use it. usedh_ocamlcleaninstead, she's the upgraded version and she ate. π
π SEE ALSO π
this program is meant to be used together with debhelper. they're a package deal. a duo. a duo that slays. π«Ά
π AUTHOR π
Mehdi Dogguy <mehdi@debian.org> β thank you for your service, king π
and that's the whole page bestie, no cap, we didn't skip a single line π
this was dh_ocamlinit from the User Contributed Perl Documentation, written against perl v5.40.1 and dated 2026-08-05. go forth and substitute. πΈβ¨π¦
π¦ where this page comes from
- ubuntu stonking: dh-ocaml 3.8 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms