From 1de4ad70db783b7623f86c6a6f536401730cfb97 Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Fri, 17 Jul 2015 23:34:06 +0200 Subject: [PATCH] Add bootstrap script. This script takes care of all the dependencies. --- ocaml/bootstrap | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 ocaml/bootstrap diff --git a/ocaml/bootstrap b/ocaml/bootstrap new file mode 100755 index 0000000..99b2113 --- /dev/null +++ b/ocaml/bootstrap @@ -0,0 +1,23 @@ +#!/bin/sh + +case `uname -s` in + 'Darwin') + PKG_CONFIG_PATH=/usr/local//Cellar/sqlite/3.8.0.2/lib/pkgconfig + brew install gnutls + ;; + 'FreeBSD') + sudo portsnap fetch update + cd /usr/ports/security/gnutls + sudo make install + ;; + *) + echo "Unsupported platform." + exit 1 + ;; +esac + +opam update +opam install lwt +opam install conf-gnutls +opam install ocamlnet +opam install irc-client