6 let (i
,rest
) = Scanf.sscanf s
".%i%s" (fun i s
-> i
,s
) in
11 let (major
,minor
) = Scanf.sscanf s
" %i%s" (fun i s
-> i
,s
) in
14 let rec get_version_line () =
15 let s = Pervasives.input_line
Pervasives.stdin
in
17 Scanf.sscanf
s "version: %s" parse_version
19 | _
-> get_version_line ()
22 let version_to_match = parse_version (Sys.argv
.(1)) in
24 if version_to_match <= get_version_line ()
29 print_endline
"malformed input: no version number";