Add Whentools library, test, documentation.
[whenjobs.git] / tools / whenjobs.ml
index f8a0659..8472672 100644 (file)
@@ -20,6 +20,9 @@ open Big_int
 open Unix
 open Printf
 
+(* Ensures that Whentools module is linked to the whenjobs tool. *)
+let _ = Whentools.set_variable
+
 let libdir = ref Libdir.libdir
 
 let jobsdir =
@@ -249,7 +252,7 @@ and upload_file () =
   );
 
   (* Test-load the jobs file to ensure it makes sense. *)
-  Whenfile.init ();
+  Whenfile.init Whenstate.empty;
   (try
      Dynlink.loadfile cmo_file
    with