1 let read_from_stdin = ref false;;
3 let uri_of_filename fn =
5 Str.replace_first (Str.regexp (Str.quote Configuration.helm_dir)) "cic:" fn
7 let uri' = Str.replace_first (Str.regexp "\.xml$") "" uri in
8 UriManager.uri_of_string uri'
12 Deannotate.expect_possible_parameters := true ;
15 ["-stdin", Arg.Set read_from_stdin, "Read from stdin"]
16 (fun x -> files := (x, uri_of_filename x) :: !files)
18 usage: experiment file ...
21 if !read_from_stdin then
25 let l = Str.split (Str.regexp " ") (read_line ()) in
26 List.iter (fun x -> files := (x, uri_of_filename x) :: !files) l
31 files := List.rev !files;
33 print_endline "ATTENTION: have you changed servers.txt so that you'll try \
34 to repair your own objs instead of others'?" ;
37 (function (fn, uri) ->
38 print_string (UriManager.string_of_uri uri) ;
41 CicFindParameters.fix_params uri (Some fn)
43 e -> print_newline () ; flush stdout ; raise e ) ;
44 print_endline " OK!" ;