Skip to content

Commit

Permalink
OCaml 4.02.2, opam 1.2.2, ignore github cert
Browse files Browse the repository at this point in the history
RHEL/CentOS 5 will reject the github https URL otherwise.
  • Loading branch information
hcarty committed Jun 30, 2015
1 parent e674ecb commit 1464d9e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ocamlbrew
Expand Up @@ -15,7 +15,7 @@ function help_then_exit() {
echo "Possible flags:"
echo "-h Display this message"
echo "-b [path] Use [path] as \$OCAMLBREW_BASE"
echo "-v [version] Install the given version of OCaml (i.e. 4.02.1)"
echo "-v [version] Install the given version of OCaml (i.e. 4.02.2)"
echo "-c \"[flags]\" Flags to pass to OCaml's configure"
echo "-p [patch] Patch to apply to OCaml"
echo "-a Install everything with no prompts"
Expand Down Expand Up @@ -106,7 +106,7 @@ function init_variables() {
# The version of OCaml we are installing and download URL
: ${OCAML_MAJOR_VERSION=4}
: ${OCAML_MINOR_VERSION=02}
: ${OCAML_PATCH_VERSION=1}
: ${OCAML_PATCH_VERSION=2}
: ${OCAML_VERSION=$OCAML_MAJOR_VERSION.$OCAML_MINOR_VERSION.$OCAML_PATCH_VERSION}
: ${OCAML_URL=http://caml.inria.fr/pub/distrib/ocaml-$OCAML_MAJOR_VERSION.$OCAML_MINOR_VERSION/ocaml-$OCAML_VERSION.tar.gz}

Expand All @@ -120,7 +120,7 @@ function init_variables() {
# opam version we are installing and download URL
: ${OPAM_MAJOR_VERSION=1}
: ${OPAM_MINOR_VERSION=2}
: ${OPAM_PATCH_VERSION=0}
: ${OPAM_PATCH_VERSION=2}
: ${OPAM_VERSION=$OPAM_MAJOR_VERSION.$OPAM_MINOR_VERSION.$OPAM_PATCH_VERSION}
: ${OPAM_URL=https://github.com/ocaml/opam/releases/download/$OPAM_VERSION/opam-full-$OPAM_VERSION.tar.gz}

Expand Down Expand Up @@ -414,7 +414,7 @@ function brew_opam() {
case $1 in
retrieve)
say Retrieving the latest version of opam
curl -LO $OPAM_URL
curl -kLO $OPAM_URL
tar xzf opam-full-$OPAM_VERSION.tar.gz
cd opam-full-$OPAM_VERSION
;;
Expand Down

0 comments on commit 1464d9e

Please sign in to comment.