diff options
author | notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2007-10-18 12:25:03 +0000 |
---|---|---|
committer | notin <notin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2007-10-18 12:25:03 +0000 |
commit | a5bc638afc33a747c42374cfbe4424ab147433ec (patch) | |
tree | 2991fdcd40218bc0cc42cdab5633aad6abd16a5e /scripts | |
parent | e21553acdd40010b9f21a3342cf5df4a51b0a15a (diff) |
Uniformisation de l'option -where de coqc avec celle de coqtop
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10235 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/coqc.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/coqc.ml b/scripts/coqc.ml index e09ef40e4..673567a85 100644 --- a/scripts/coqc.ml +++ b/scripts/coqc.ml @@ -158,10 +158,13 @@ let parse_args () = | "-unboxed-values" | "-unboxed-definitions" | "-draw-vm-instr" as o) :: rem -> parse (cfiles,o::args) rem + | "-where" :: _ -> + let coqlib = + try Sys.getenv "COQLIB" with Not_found -> Coq_config.coqlib + in + print_endline coqlib; exit 0 | ("-v"|"--version") :: _ -> Usage.version () - | "-where" :: _ -> - print_endline Coq_config.coqlib; exit 0 | f :: rem -> if Sys.file_exists f then parse (f::cfiles,args) rem |