| •1 |
#!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`. |
| 2 |
|
| 3 |
set -e |
| 4 |
export PATH=$COQBIN:$PATH |
| 5 |
export LC_ALL=C |
| 6 |
|
| 7 |
rmscip-shell system . . rm. -rf _test |
| 8 |
mkdirscip-shell system . . mkdir. _test |
| 9 |
cpscip-shell system . . cp. _CoqProject _test/ |
| 10 |
cd _test |
| 11 |
mkdirscip-shell system . . mkdir. src |
| 12 |
|
| 13 |
echoscip-shell system . . echo. '{ let foo = () }' > src/file1.mlg |
| 14 |
echoscip-shell system . . echo. 'let bar = File1.foo' > src/file2.ml |
| 15 |
rocq makefile -f _CoqProject -o Makefile |
| 16 |
if whichscip-shell system . . which. ocamlopt >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 17 |
makescip-shell system . . make. src/file2.cmx |
| 18 |
[scip-shell system . . `[`. -f src/file2.cmx ] |
| 19 |
fi |
| 20 |
makescip-shell system . . make. src/file2.cmo |
| 21 |
[scip-shell system . . `[`. -f src/file2.cmo ] |