pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Moved the definition of append_extra_args a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b47aa07a7c1f
branches:  trunk
changeset: 521884:b47aa07a7c1f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 26 08:42:42 2006 +0000

description:
Moved the definition of append_extra_args a bit to make the code a
little more understandable.

Eliminated the otherwise unused variable original_cmd.

diffstat:

 mk/wrapper/wrapper.sh |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 1794a1c35628 -r b47aa07a7c1f mk/wrapper/wrapper.sh
--- a/mk/wrapper/wrapper.sh     Sun Nov 26 08:39:52 2006 +0000
+++ b/mk/wrapper/wrapper.sh     Sun Nov 26 08:42:42 2006 +0000
@@ -1,6 +1,6 @@
 #! @WRAPPER_SHELL@
 #
-# $NetBSD: wrapper.sh,v 1.7 2006/11/11 07:44:46 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.8 2006/11/26 08:42:42 rillig Exp $
 #
 # Copyright (c) 2004 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -58,7 +58,6 @@
 wrapperlog="${WRAPPER_LOG-@_WRAP_LOG@}"
 skip_transform="${WRAPPER_SKIP_TRANSFORM-@_WRAP_SKIP_TRANSFORM@}"
 debug="${WRAPPER_DEBUG-@WRAPPER_DEBUG@}"
-append_extra_args=yes
 
 cat="@CAT@"  
 echo="@ECHO@"
@@ -79,8 +78,7 @@
 *)     debug_log=":" ;;
 esac
 
-original_cmd="$0 $@"
-msg_log $wrapperlog "[*]" $original_cmd
+msg_log "$wrapperlog" "[*] $0 $*"
 
 cmd="@WRAPPEE@"
 libs=""
@@ -89,6 +87,7 @@
 init_queue argbuf
 init_queue cmdbuf
 
+append_extra_args=yes
 . $scan
 
 case $append_extra_args in



Home | Main Index | Thread Index | Old Index