My working unpac repository
1#**************************************************************************
2#* *
3#* OCaml *
4#* *
5#* Jeremie Dimino, Jane Street Europe *
6#* *
7#* Copyright 2017 Jane Street Group LLC *
8#* *
9#* All rights reserved. This file is distributed under the terms of *
10#* the GNU Lesser General Public License version 2.1, with the *
11#* special exception on linking described in the file LICENSE. *
12#* *
13#**************************************************************************
14
15# This script remove the module aliases from stdlib.ml and stdlib.mli
16# so that ocamldep doesn't register dependencies from stdlib to all
17# other modules
18BEGIN { in_aliases=0 }
19NR == 1 { printf ("# 1 \"%s\"\n", FILENAME) }
20/^\(\*MODULE_ALIASES\*\)\r?$/ { in_aliases=1 }
21!in_aliases { print }