libraries/ocaml-findlib: Fixed doinst.sh.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-01-18 00:52:52 +00:00 committed by Willy Sudiarto Raharjo
parent c44f0fd758
commit 2ccb7ba626

View file

@ -10,8 +10,8 @@ config() {
}
config etc/findlib.conf
destdir=$(ocamlfind printconf destdir)/stublibs
ldconf=$(ocamlfind printconf ldconf)
if ! grep -q $destdir $ldconf; then
echo $destdir >> $ldconf
destdir=$(chroot . /usr/bin/ocamlfind printconf destdir)/stublibs
ldconf=$(chroot . /usr/bin/ocamlfind printconf ldconf)
if ! grep -q -s "${destdir##/}" "$ldconf"; then
echo "$destdir" >> "${ldconf##/}"
fi