ocamldsort

dependency sorter for OCaml source files

Install

All systems
curl cmd.cat/ocamldsort.sh
Debian Debian
apt-get install ocamldsort
Ubuntu
apt-get install ocamldsort
image/svg+xml Kali Linux
apt-get install ocamldsort
Fedora
dnf install ocamldsort
Windows (WSL2)
sudo apt-get update sudo apt-get install ocamldsort
Raspbian
apt-get install ocamldsort

ocamldsort

dependency sorter for OCaml source files

The ocamldsort command scans a set of Objective Caml source files (.ml and .mli files), sorts them according to their dependencies and prints the sorted files in order to link their corresponding .cmo files. ocamldsort can be used to compile and link simple projects with one command. However for larger projects where separate compilation is desirable, ocamldsort can also be used from within a makefile as described in the documentation.