summaryrefslogtreecommitdiff
path: root/mk/wrapper
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-11-26 08:42:42 +0000
committerrillig <rillig@pkgsrc.org>2006-11-26 08:42:42 +0000
commit2681aeb95ac16258a58f1b13987b447761b446c0 (patch)
tree9db5f756d1c3a0ece20cd147dd743fa410fafb3b /mk/wrapper
parentb4ca67c5dbd577d5e268895336f74c2995e53ab2 (diff)
downloadpkgsrc-2681aeb95ac16258a58f1b13987b447761b446c0.tar.gz
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 (limited to 'mk/wrapper')
-rw-r--r--mk/wrapper/wrapper.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/mk/wrapper/wrapper.sh b/mk/wrapper/wrapper.sh
index 7f9f66769df..7fc80804b73 100644
--- a/mk/wrapper/wrapper.sh
+++ b/mk/wrapper/wrapper.sh
@@ -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 @@ wrapper_subr_sh="@_WRAP_SUBR_SH@"
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 @@ yes) debug_log="msg_log" ;;
*) debug_log=":" ;;
esac
-original_cmd="$0 $@"
-msg_log $wrapperlog "[*]" $original_cmd
+msg_log "$wrapperlog" "[*] $0 $*"
cmd="@WRAPPEE@"
libs=""
@@ -89,6 +87,7 @@ do_transform=yes
init_queue argbuf
init_queue cmdbuf
+append_extra_args=yes
. $scan
case $append_extra_args in