summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2014-10-27 03:44:39 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2014-10-27 03:44:39 +0000
commitb80b5e412ad4ed5a9bbbec415bede330e4404ac4 (patch)
treeb0504119251400049dbbee576c886c4bd4f86f0d /devel
parent1d94b8bccc9c4c399812b452cf36f679720de8e7 (diff)
downloadpkgsrc-b80b5e412ad4ed5a9bbbec415bede330e4404ac4.tar.gz
- Do not execute arguments modification other than install subcommand.
- Avoid removing files that have "install" in its filename.
Diffstat (limited to 'devel')
-rw-r--r--devel/ocaml-findlib/files/ocamlfind.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/ocaml-findlib/files/ocamlfind.sh b/devel/ocaml-findlib/files/ocamlfind.sh
index dc81649422a..3fada75d9ea 100644
--- a/devel/ocaml-findlib/files/ocamlfind.sh
+++ b/devel/ocaml-findlib/files/ocamlfind.sh
@@ -1,9 +1,9 @@
#!@SH@
-# $NetBSD: ocamlfind.sh,v 1.3 2014/10/09 20:53:15 jaapb Exp $
+# $NetBSD: ocamlfind.sh,v 1.4 2014/10/27 03:44:39 hiramatsu Exp $
-case "$@" in
-*install*)
+case "$1" in
+install)
args="$@"
install_args=
case "$args" in
@@ -18,7 +18,7 @@ case "$@" in
install_args="${install_args} -ldconf @BUILDLINK_DIR@/lib/ocaml/ld.conf"
;;
esac
- args="${args%%install*}install ${install_args}${args##*install}"
+ args="install ${install_args} ${args#install}"
exec "@OCAML_FINDLIB_PREFIX@/bin/`basename $0`" ${args}
;;
*)