summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/build/mkruntimedef.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/build/mkruntimedef.sh')
-rwxr-xr-xocaml-binary-annot/build/mkruntimedef.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ocaml-binary-annot/build/mkruntimedef.sh b/ocaml-binary-annot/build/mkruntimedef.sh
new file mode 100755
index 0000000000..54f7cc5c72
--- /dev/null
+++ b/ocaml-binary-annot/build/mkruntimedef.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# $Id$
+echo 'let builtin_exceptions = [|'; \
+sed -n -e 's|.*/\* \("[A-Za-z_]*"\) \*/$| \1;|p' byterun/fail.h | \
+sed -e '$s/;$//'; \
+echo '|]'; \
+echo 'let builtin_primitives = [|'; \
+sed -e 's/.*/ "&";/' -e '$s/;$//' byterun/primitives; \
+echo '|]'