From 213a57385af5c2e64016186870bfe6133505b73c Mon Sep 17 00:00:00 2001 From: "Jockey S. Kyd" Date: Sat, 5 May 2012 12:17:07 -0400 Subject: libraries/ocaml-findlib: Added (OCaml library manager) Signed-off-by: dsomero --- libraries/ocaml-findlib/doinst.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libraries/ocaml-findlib/doinst.sh (limited to 'libraries/ocaml-findlib/doinst.sh') diff --git a/libraries/ocaml-findlib/doinst.sh b/libraries/ocaml-findlib/doinst.sh new file mode 100644 index 0000000000000..e0013668ff066 --- /dev/null +++ b/libraries/ocaml-findlib/doinst.sh @@ -0,0 +1,17 @@ +#!/bin/sh +config() { + old="$1" + new="$old.new" + if [ ! -r $old ]; then + mv $new $old + elif [ "$(cat $old | md5sum)" = "$(cat $new | md5sum)" ]; then + rm $new + fi +} +config etc/findlib.conf + +destdir=$(ocamlfind printconf destdir)/stublibs +ldconf=$(ocamlfind printconf ldconf) +if ! grep -q $destdir $ldconf; then + echo $destdir >> $ldconf +fi -- cgit v1.2.3