summaryrefslogtreecommitdiff
path: root/stdlib/remove_module_aliases.awk
blob: d3d436d7b127ea0590a15a03ca9664a74de55c1a (plain)
1
2
3
4
5
6
7
# This script remove the module aliases from stdlib.ml and stdlib.mli
# so that ocamldep doesn't register dependencies from stdlib to all
# other modules
BEGIN { in_aliases=0 }
NR == 1 { printf ("# 1 \"%s\"\n", FILENAME) }
$0 == "(*MODULE_ALIASES*)" { in_aliases=1 }
!in_aliases { print }