mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
31 lines
683 B
Bash
Executable file
31 lines
683 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# OASIS_START
|
|
# DO NOT EDIT (digest: 7577949ceda6f9dbd4983aea8db9275b)
|
|
set -e
|
|
|
|
FST=true
|
|
for i in "$@"; do
|
|
if $FST; then
|
|
set --
|
|
FST=false
|
|
fi
|
|
|
|
case $i in
|
|
--*=*)
|
|
ARG=${i%%=*}
|
|
VAL=${i##*=}
|
|
set -- "$@" "$ARG" "$VAL"
|
|
;;
|
|
*)
|
|
set -- "$@" "$i"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ ! -e setup.exe ] || [ _oasis -nt setup.exe ] || [ setup.ml -nt setup.exe ] || [ configure -nt setup.exe ]; then
|
|
ocamlfind ocamlopt -o setup.exe -linkpkg -package oasis.dynrun setup.ml || ocamlfind ocamlc -o setup.exe -linkpkg -package oasis.dynrun setup.ml || exit 1
|
|
rm -f setup.cmi setup.cmo setup.cmx setup.o
|
|
fi
|
|
./setup.exe -configure "$@"
|
|
# OASIS_STOP
|