2010-09-15 23:41:18 +02:00
|
|
|
diff -Nuar hol_light/hol.ml hol_light.nixos/hol.ml
|
2010-11-03 23:20:05 +01:00
|
|
|
--- hol_light/hol.ml 2010-11-03 23:09:01.000000000 +0100
|
|
|
|
+++ hol_light.nixos/hol.ml 2010-11-03 23:10:31.000000000 +0100
|
2010-09-15 23:41:18 +02:00
|
|
|
@@ -11,8 +11,8 @@
|
|
|
|
|
|
|
|
let hol_version = "2.20++";;
|
|
|
|
|
|
|
|
-let hol_dir = ref
|
|
|
|
- (try Sys.getenv "HOLLIGHT_DIR" with Not_found -> Sys.getcwd());;
|
|
|
|
+let hol_dir = ref "@HOL_LIGHT_SRC_DIR@";;
|
|
|
|
+Topdirs.dir_directory "@HOL_LIGHT_SRC_DIR@";;
|
|
|
|
|
|
|
|
(* ------------------------------------------------------------------------- *)
|
|
|
|
(* Should eventually change to "ref(Filename.temp_dir_name)". *)
|
2010-11-03 23:20:05 +01:00
|
|
|
@@ -23,19 +23,6 @@
|
2010-09-15 23:41:18 +02:00
|
|
|
let temp_path = ref "/tmp";;
|
|
|
|
|
|
|
|
(* ------------------------------------------------------------------------- *)
|
|
|
|
-(* Load in parsing extensions. *)
|
|
|
|
-(* For Ocaml < 3.10, use the built-in camlp4 *)
|
|
|
|
-(* and for Ocaml >= 3.10, use camlp5 instead. *)
|
|
|
|
-(* ------------------------------------------------------------------------- *)
|
|
|
|
-
|
2010-11-03 23:20:05 +01:00
|
|
|
-if let v = String.sub Sys.ocaml_version 0 4 in v >= "3.10"
|
2010-09-15 23:41:18 +02:00
|
|
|
-then (Topdirs.dir_directory "+camlp5";
|
|
|
|
- Topdirs.dir_load Format.std_formatter "camlp5o.cma")
|
|
|
|
-else (Topdirs.dir_load Format.std_formatter "camlp4o.cma");;
|
|
|
|
-
|
|
|
|
-Topdirs.dir_load Format.std_formatter (Filename.concat (!hol_dir) "pa_j.cmo");;
|
|
|
|
-
|
|
|
|
-(* ------------------------------------------------------------------------- *)
|
|
|
|
(* Load files from system and/or user-settable directories. *)
|
|
|
|
(* Paths map initial "$/" to !hol_dir dynamically; use $$ to get the actual *)
|
|
|
|
(* $ character at the start of a directory. *)
|