---
name: "dh_ocamlinit"
section: "1"
platform: "linux"
package: "dh-ocaml"
version: "2.4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_ocamlinit"
---

# dh\_ocamlinit(1)

Substitutes ocaml variables in debian/\*.in files with their corresponding value.

## NAME

dh\_ocamlinit - Substitutes ocaml variables in debian/\*.in files with their corresponding value.

## SYNOPSIS

**dh\_ocamlinit** \[*debhelper options*\]

## DESCRIPTION

dh\_ocamlinit looks for debian/\*.in files and replaces all present variables (like `@OCAML_ABI`@, `@OCamlStdlibDir`@ and `@OCamlDllDir`@) with the corresponding value.

Lines in files debian/\*.in prefixed with OPT are only kept when ocaml compilation to native code is supported, lines prefixed with BYTE are only kept when compilation to native code is not supported, and lines prefixed with DYN are kept when dynamic linking is supported. dh\_ocamlinit handles additional substitutions by specifying them in the OCAMLINIT\_SED environment variable.

## OPTIONS

- **-d**

  Clean files generated from present debian/\*.in ones and exit. This option is deprecated, use dh\_ocamlclean instead.

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md), [**dh**(1)](/dh/1.md), [**dh\_ocaml**(1)](/dh_ocaml/1.md), [**dh\_ocamlclean**(1)](/dh_ocamlclean/1.md)

This program is meant to be used together with debhelper.

## AUTHOR

Mehdi Dogguy \<mehdi@debian.org\>
