]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/interface/getter.ml
This commit was manufactured by cvs2svn to create tag 'v0_0_2'.
[helm.git] / helm / interface / getter.ml
index f6d0a6a380f5395ff0cdb7f44c3db35d360ad4d8..85e64117b6be0fe66366d4eaea95c811364e8617 100644 (file)
 
 exception ErrorGetting of string;;
 
-(* FEATURE MOVED TO HTTP_GETTER, Zack
 module OrderedStrings =
  struct
   type t = string
   let compare (s1 : t) (s2 : t) = compare s1 s2
  end
 ;;
-*)
 
-
-(* FEATURE MOVED TO HTTP_GETTER, Zack
 module MapOfStrings = Map.Make(OrderedStrings);;
-*)
 
-(* FEATURE MOVED TO HTTP_GETTER, Zack
 let read_index url =
  let module C = Configuration in
-  if Sys.command ("helm_wget " ^ C.tmp_dir ^ " " ^ url ^ "/\"" ^
+  if Sys.command ("helm_wget " ^ C.tmpdir ^ " " ^ url ^ "/\"" ^
    C.indexname ^ "\"") <> 0
   then
    raise (ErrorGetting url) ;
-  let tmpfilename = C.tmp_dir ^ "/" ^ C.indexname in
+  let tmpfilename = C.tmpdir ^ "/" ^ C.indexname in
    let fd = open_in tmpfilename in
    let uris = ref [] in
     try
@@ -73,9 +67,7 @@ let read_index url =
       Sys.remove tmpfilename ;
       !uris
 ;;
-*)
 
-(* FEATURE MOVED TO HTTP_GETTER, Zack
 (* mk_urls_of_uris list_of_servers_base_urls *)
 let rec mk_urls_of_uris =
  function
@@ -93,11 +85,9 @@ let rec mk_urls_of_uris =
          (fun (uri,comp) m -> MapOfStrings.add uri (url_of_uri (uri,comp)) m)
          uris map
 ;;
-*)
 
 exception PerlGetterNotResponding;;
 
-(* FEATURE MOVED TO HTTP_GETTER, Zack
 let update () =
  let module C = Configuration in
   let fd = open_in C.servers_file in
@@ -120,12 +110,6 @@ let update () =
        then
         raise PerlGetterNotResponding ;
 ;;
-*)
-
-let update () =
-(* deliver update request to http_getter *)
- ClientHTTP.send (Configuration.getter_url ^ "update")
-;;
 
 (* url_of_uri : uri -> url *)
 let url_of_uri uri =
@@ -161,8 +145,6 @@ let get_file uri =
    fn
 ;;
 
-let raw_get = ClientHTTP.get_and_save
-
 (* get : uri -> filename *)
 (* If uri is the URI of an annotation, the annotated object is processed *)
 let get uri =