File: api-ocaml

package info (click to toggle)
morbig 0.11.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,716 kB
  • sloc: ml: 4,008; sh: 787; ansic: 227; makefile: 69
file content (23 lines) | stat: -rwxr-xr-x 559 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

indir=${PWD}/debian/tests
outdir=${ADT_ARTIFACTS-/tmp/morbig-package-test}/ocaml-api
mkdir -p ${outdir}
cd ${outdir}
cp ${indir}/parse.ml ${indir}/_tags .
cp ${indir}/scripts/*.sh .
echo "* Compile to bytecode"
ocamlbuild -use-ocamlfind parse.byte
echo "* Run the bytecode"
for script in *.sh; do
    ./parse.byte ${script}
done
if [ -x /usr/bin/ocamlopt ]; then
    echo "* Compile to native code"
    ocamlbuild -use-ocamlfind parse.native
    echo "* Run the native code"
    for script in *.sh; do
	./parse.native ${script}
    done
fi