pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/wrapper Add a --wrappee-name command line option to...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fba94f90741a
branches:  trunk
changeset: 522603:fba94f90741a
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Thu Dec 14 22:25:19 2006 +0000

description:
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:

 mk/wrapper/wrapper.sh |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 60cd0c398303 -r fba94f90741a mk/wrapper/wrapper.sh
--- a/mk/wrapper/wrapper.sh     Thu Dec 14 22:10:24 2006 +0000
+++ b/mk/wrapper/wrapper.sh     Thu Dec 14 22:25:19 2006 +0000
@@ -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 @@
 msg_log "$wrapperlog" "[*] $0 $*"
 
 cmd="@WRAPPEE@"
+case "$*" in
+*--wrappee-name*) $echo $cmd ; exit ;;
+esac
+
 libs=""
 rellpath=""
 do_transform=yes



Home | Main Index | Thread Index | Old Index