File: hello

package info (click to toggle)
pyml 20250807-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 592 kB
  • sloc: ml: 7,043; ansic: 1,802; makefile: 317; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 353 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

outdir=${ADT_ARTIFACTS-/tmp/pyml}
indir="debian/tests"
input="hello.ml"
mkdir -p ${outdir}
cp ${indir}/${input} ${outdir}
cd ${outdir}

ocamlfind ocamlc -package pyml -linkpkg -o hello.byte hello.ml
./hello.byte

if [ -x /usr/bin/ocamlopt ]; then
    ocamlfind ocamlopt -package pyml -linkpkg -o hello.opt hello.ml
    ./hello.opt
fi