Sys.Signals module for a Variant type of signals (and a set_signal function that...
[ocaml.git] / camlp4 / unmaintained / compile / compile.sh
bloba2f4f773216fe6d4bb7f451d5452ea7f1812cd7a
1 #!/bin/sh -e
3 ARGS=
4 FILES=
5 ENTRIES=
6 while test "" != "$1"; do
7 case $1 in
8 -e)
9 shift;
10 if test "$ENTRIES" != ""; then ENTRIES="$ENTRIES; "; fi
11 ENTRIES="$ENTRIES$1";;
12 *.ml*) FILES="$FILES $1";;
13 *) ARGS="$ARGS $1";;
14 esac
15 shift
16 done
18 cat $FILES | sed -e 's/Pcaml.parse_i.*$//' > tmp.ml
19 echo "Compile.entries.val := [$ENTRIES];" >> tmp.ml
20 > tmp.mli
21 set -x
22 $OTOP/boot/ocamlrun$EXE $OTOP/boot/ocamlc -I $OTOP/boot -c tmp.mli
23 $OTOP/boot/ocamlrun$EXE ../boot/camlp4boot$EXE -meta_action tmp.ml -o tmp.ppo
24 $OTOP/boot/ocamlrun$EXE $OTOP/boot/ocamlc -I $OTOP/boot -I ../lib -I ../camlp4 -c -impl tmp.ppo
25 rm tmp.ppo
26 > tmp.null
27 $OTOP/boot/ocamlrun$EXE ../camlp4/camlp4$EXE ./compile.cmo ./tmp.cmo ../etc/pr_r.cmo ../etc/pr_rp.cmo $ARGS -sep "\n\n" -impl tmp.null && rm tmp.*