summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/tools/magic
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/tools/magic')
-rw-r--r--ocaml-binary-annot/tools/magic11
1 files changed, 11 insertions, 0 deletions
diff --git a/ocaml-binary-annot/tools/magic b/ocaml-binary-annot/tools/magic
new file mode 100644
index 0000000000..7468066e01
--- /dev/null
+++ b/ocaml-binary-annot/tools/magic
@@ -0,0 +1,11 @@
+# Here are some definitions that can be added to the /usr/share/magic
+# database so that the file(1) command recognizes OCaml compiled files.
+# Contributed by Sven Luther.
+0 string Caml1999 Objective Caml
+>8 string X bytecode executable
+>8 string I interface data (.cmi)
+>8 string O bytecode object data (.cmo)
+>8 string A bytecode library data (.cma)
+>8 string Y native object data (.cmx)
+>8 string Z native library data (.cmxa)
+>9 string >\0 (Version %3.3s).