File: api-ocaml

package info (click to toggle)
cudf 0.10-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 688 kB
  • sloc: ml: 2,509; ansic: 871; makefile: 170; sh: 18
file content (21 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e

indir=${PWD}/debian/tests/
exdir=${PWD}/examples
outdir=${AUTOPKGTEST_ARTIFACTS-/tmp/cudf-package-test}/ocaml-api
mkdir -p ${outdir}
cd ${outdir}
cp ${indir}/parse.ml ${indir}/_tags .

echo "* Compile to bytecode"
ocamlbuild -use-ocamlfind parse.byte
echo "* Run the bytecode"
./parse.byte ${exdir}/universe.cudf

if [ -x /usr/bin/ocamlopt ]; then
    echo "* Compile to native code"
    ocamlbuild -use-ocamlfind parse.native
    echo "* Run the native code"
    ./parse.native ${exdir}/universe.cudf
fi