Files
pkgsrc-ng/devel/ocaml-findlib/files/ocamlfind.sh
2016-01-21 23:40:00 +01:00

26 lines
534 B
Bash

#!@SH@
# $NetBSD: ocamlfind.sh,v 1.5 2014/10/31 01:00:30 hiramatsu Exp $
if [ "$1" = install ]; then
need_destdir=yes
need_ldconf=yes
for arg in "$@"; do
case "$arg" in
-destdir)
need_destdir=no
;;
-ldconf)
need_ldconf=no
;;
esac
done
if [ "$need_destdir" = "yes" ]; then
set -- "$@" -destdir "@DESTDIR@@OCAML_FINDLIB_PREFIX@/lib/ocaml/site-lib"
fi
if [ "$need_ldconf" = "yes" ]; then
set -- "$@" -ldconf "@BUILDLINK_DIR@/lib/ocaml/ld.conf"
fi
fi
exec "@OCAML_FINDLIB_PREFIX@/bin/`basename $0`" "$@"