configure 621 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. # OASIS_START
  3. # DO NOT EDIT (digest: 67dd0def14e1d99625d2485f6a4d5df1)
  4. set -e
  5. FST=true
  6. for i in "$@"; do
  7. if $FST; then
  8. set --
  9. FST=false
  10. fi
  11. case $i in
  12. --*=*)
  13. ARG=${i%%=*}
  14. VAL=${i##*=}
  15. set -- "$@" "$ARG" "$VAL"
  16. ;;
  17. *)
  18. set -- "$@" "$i"
  19. ;;
  20. esac
  21. done
  22. if [ ! -e setup.exe ] || [ _oasis -nt setup.exe ] || [ setup.ml -nt setup.exe ] || [ configure -nt setup.exe ]; then
  23. ocamlfind ocamlopt -o setup.exe setup.ml || ocamlfind ocamlc -o setup.exe setup.ml || exit 1
  24. rm -f setup.cmi setup.cmo setup.cmx setup.o
  25. fi
  26. ./setup.exe -configure "$@"
  27. # OASIS_STOP