ocaml/build/mkruntimedef.sh

10 lines
262 B
Bash
Executable File

#!/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 '|]'