forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune
36 lines (34 loc) · 1.5 KB
/
dune
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
;**************************************************************************
;* *
;* OCaml *
;* *
;* Thomas Refis, Jane Street Europe *
;* *
;* Copyright 2018 Jane Street Group LLC *
;* *
;* All rights reserved. This file is distributed under the terms of *
;* the GNU Lesser General Public License version 2.1, with the *
;* special exception on linking described in the file LICENSE. *
;* *
;**************************************************************************
(library
(name stdlib)
(stdlib
(exit_module std_exit)
(internal_modules Camlinternal*)
(modules_before_stdlib
camlinternalFormatBasics))
(flags (:standard -w -9 -nolabels))
(preprocess
(per_module
((action
(run awk -v dune_wrapped=true
-f %{dep:expand_module_aliases.awk} %{input-file}))
stdlib))))
(rule
(targets sys.ml)
(deps (:version ../VERSION) (:p sys.mlp))
(action
(with-stdout-to %{targets}
(bash
"sed -e \"s|%%VERSION%%|`sed -e 1q %{version} | tr -d '\r'`|\" %{p}"))))