diff options
author | 2008-08-08 15:25:39 +0200 | |
---|---|---|
committer | 2008-08-08 15:42:33 +0200 | |
commit | 9fd4621dcafc03b56c348a0342b2d172c065121d (patch) | |
tree | a334ff0c9fcb8a7eb15ad537da64074634219e72 /debian/patches/use-env-in-coq-config.dpatch | |
parent | dbb8a5704033fb6990af449e29c6018286d4b044 (diff) |
Add use-env-in-coq-config.dpatch
Use environment variables by default in coq_config.ml. This allows
the run of micromega-related tests before installation.
Diffstat (limited to 'debian/patches/use-env-in-coq-config.dpatch')
-rwxr-xr-x | debian/patches/use-env-in-coq-config.dpatch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/use-env-in-coq-config.dpatch b/debian/patches/use-env-in-coq-config.dpatch new file mode 100755 index 00000000..1f01315f --- /dev/null +++ b/debian/patches/use-env-in-coq-config.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## use-env-in-coq-config.dpatch by Stephane Glondu <steph@glondu.net> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Use environment variables by default in coq_config.ml + +@DPATCH@ +diff --git a/configure b/configure +index 2747ee2..a57b996 100755 +--- a/configure ++++ b/configure +@@ -862,9 +862,9 @@ cat << END_OF_COQ_CONFIG > $mlconfig_file + (* DO NOT EDIT THIS FILE: automatically generated by ../configure *) + + let local = $local +-let bindir = "$ESCBINDIR" +-let coqlib = "$ESCLIBDIR" +-let coqtop = "$ESCCOQTOP" ++let bindir = try Sys.getenv "COQBIN" with Not_found -> "$ESCBINDIR" ++let coqlib = try Sys.getenv "COQLIB" with Not_found -> "$ESCLIBDIR" ++let coqtop = try Sys.getenv "COQTOP" with Not_found -> "$ESCCOQTOP" + let camldir = "$ESCCAMLDIR" + let camllib = "$ESCCAMLLIB" + let camlp4 = "$CAMLP4" |