From f36693e6a38ef7395905f7388da3d450cf5b3b5a Mon Sep 17 00:00:00 2001 From: herbelin Date: Thu, 14 Apr 2011 18:47:38 +0000 Subject: Add directories in COQPATH to search path. This is to allow users to install plugins when coq is installed system-wide. Signed-off-by: Tom Prince git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14001 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tools/coqdep.ml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/coqdep.ml b/tools/coqdep.ml index ccce7cd311..a683aaae9f 100644 --- a/tools/coqdep.ml +++ b/tools/coqdep.ml @@ -199,7 +199,9 @@ let coqdep () = add_rec_dir add_coqlib_known (coqlib//"theories") ["Coq"]; add_rec_dir add_coqlib_known (coqlib//"plugins") ["Coq"]; let user = coqlib//"user-contrib" in - if Sys.file_exists user then add_rec_dir add_coqlib_known user [] + if Sys.file_exists user then add_rec_dir add_coqlib_known user []; + let coqpath = Envars.coqpath () in + List.iter (fun s -> add_rec_dir add_coqlib_known s []) coqpath; end; List.iter (fun (f,d) -> add_mli_known f d) !mliAccu; List.iter (fun (f,d) -> add_mllib_known f d) !mllibAccu; -- cgit v1.2.3