-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakebytecode
executable file
·94 lines (90 loc) · 1.78 KB
/
makebytecode
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/bin/bash
# If ocamlc is not in your PATH, put the full path here.
export OCAMLC=ocamlc
export OCAMLLEX=ocamllex
$OCAMLLEX src/lexer.mll
$OCAMLC -I bin -o bin/config.cmi -c src/config.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/config.cmo -c src/config.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/secp256k1.cmi -c src/secp256k1.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/secp256k1.cmo nums.cma -c src/secp256k1.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/cryptocurr.cmi -c src/cryptocurr.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/cryptocurr.cmo nums.cma -c src/cryptocurr.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/hash.cmi -c src/hash.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/hash.cmo nums.cma -c src/hash.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/syntax.cmi -c src/syntax.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/syntax.cmo nums.cma -c src/syntax.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/parser.cmi -c src/parser.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/parser.cmo nums.cma -c src/parser.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/lexer.cmo -c src/lexer.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/interpret.cmi -c src/interpret.mli
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/interpret.cmo nums.cma -c src/interpret.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -I bin -o bin/mgcheck.cmo -c src/mgcheck.ml
if [ $? -gt 0 ]
then
exit 1
fi
$OCAMLC -o bin/egal.bytecode unix.cma nums.cma bin/config.cmo bin/secp256k1.cmo bin/cryptocurr.cmo bin/hash.cmo bin/syntax.cmo bin/parser.cmo bin/lexer.cmo bin/interpret.cmo bin/mgcheck.cmo
if [ $? -gt 0 ]
then
exit 1
fi