summaryrefslogtreecommitdiff
path: root/mk/wrapper/wrapper.sh
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2006-12-14 22:25:19 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2006-12-14 22:25:19 +0000
commit725c4c50a39813f00de5b224b83715589d1e4681 (patch)
tree3b697e6fce9b43711dbeaaa8810d4e496e753202 /mk/wrapper/wrapper.sh
parent63a452841392af7b8034b2d38785bc08ec42f3bc (diff)
downloadpkgsrc-725c4c50a39813f00de5b224b83715589d1e4681.tar.gz
Add a --wrappee-name command line option to simply return the name of
the wrapped command and exit. This will be used by libtool which needs to figure out the true command name. Yeah, it is ugly behaviour from libtool, but I'm not going to rewrite libtool. Change ok-ed by jlam.
Diffstat (limited to 'mk/wrapper/wrapper.sh')
-rw-r--r--mk/wrapper/wrapper.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/wrapper/wrapper.sh b/mk/wrapper/wrapper.sh
index af016cc3031..ca7708b1938 100644
--- a/mk/wrapper/wrapper.sh
+++ b/mk/wrapper/wrapper.sh
@@ -1,6 +1,6 @@
#! @WRAPPER_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.10 2006/12/09 12:11:28 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.11 2006/12/14 22:25:19 dmcmahill Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -79,6 +79,10 @@ esac
msg_log "$wrapperlog" "[*] $0 $*"
cmd="@WRAPPEE@"
+case "$*" in
+*--wrappee-name*) $echo $cmd ; exit ;;
+esac
+
libs=""
rellpath=""
do_transform=yes