Commit d5469f21 authored by POTTIER Francois's avatar POTTIER Francois

Interpret [checkOCamlVersion.ml] on the fly, instead of compiling it.

parent 5d28ff14
......@@ -44,8 +44,7 @@ bootstrap: .versioncheck stage1 stage2 stage3
.versioncheck:
@ echo Checking that OCaml is recent enough...
@$(OCAMLBUILD) -build-dir _stage1 checkOCamlVersion.byte
@ _stage1/checkOCamlVersion.byte --verbose --gt "4.02"
@ ocaml checkOCamlVersion.ml --verbose --gt "4.02"
@ touch $@
# ----------------------------------------------------------------------------
......
(* This module parses ocaml version and confronts it with a user-provided
version. *)
(* This script parses OCaml's version and confronts it with a user-provided
version. It is meant to be run by invoking [ocaml checkOCamlVersion.ml]. *)
#load "str.cma"
(* According to OCaml's manual, the Sys.ocaml_version value follows the
regexp [version_regexp].
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment