summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Frisch <alain@frisch.fr>2011-12-13 11:19:35 +0000
committerAlain Frisch <alain@frisch.fr>2011-12-13 11:19:35 +0000
commitee3150123290bbc15b4224addc8c6136dfee6f80 (patch)
treeaf7af0d6c873072deef241d300160a03794e436a
parent5f8ff42f10fad6cde4552a64a16fb6992ca5b28c (diff)
#5338: sanitize.sh has windows style end-of-lines (mingw).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11301 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--ocamlbuild/hygiene.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/ocamlbuild/hygiene.ml b/ocamlbuild/hygiene.ml
index e904afb44..97a9ea927 100644
--- a/ocamlbuild/hygiene.ml
+++ b/ocamlbuild/hygiene.ml
@@ -150,7 +150,9 @@ let check ?sanitize laws entry =
@ or@ use@ other@ options@ (such@ as@ defining@ hygiene@ exceptions\
@ or@ using@ the@ -no-hygiene@ option).@]"
m (if m = 1 then "" else "s") fn;
- let oc = open_out_gen [Open_wronly; Open_creat; Open_trunc; Open_text] 0o755 fn in
+ let oc = open_out_gen [Open_wronly; Open_creat; Open_trunc; Open_binary] 0o755 fn in
+ (* See PR #5338: under mingw, one produces a shell script, which must follow
+ Unix eol convention; hence Open_binary. *)
let fp = Printf.fprintf in
fp oc "#!/bin/sh\n\
# File generated by ocamlbuild\n\