pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/wrapper Before and after the transformations, the c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2763fddcea4f
branches: trunk
changeset: 533449:2763fddcea4f
user: rillig <rillig%pkgsrc.org@localhost>
date: Wed Sep 19 13:02:15 2007 +0000
description:
Before and after the transformations, the commands are written to the
log file in a format that allows copy-and-paste into a shell. Before, it
wasn't possible to see from the log file whether a space was a delimiter
or part of a shell word.
diffstat:
mk/wrapper/wrapper.sh | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 116a64157e9d -r 2763fddcea4f mk/wrapper/wrapper.sh
--- a/mk/wrapper/wrapper.sh Wed Sep 19 11:49:29 2007 +0000
+++ b/mk/wrapper/wrapper.sh Wed Sep 19 13:02:15 2007 +0000
@@ -1,6 +1,6 @@
#! @WRAPPER_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.18 2007/05/19 17:25:56 rillig Exp $
+# $NetBSD: wrapper.sh,v 1.19 2007/09/19 13:02:15 rillig Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -85,7 +85,8 @@
*) debug_log=":" ;;
esac
-msg_log "$wrapperlog" "[*] $0 $*"
+qcmd="$0"; for arg in ${1+"$@"}; do shquote "$arg"; qcmd="$qcmd $shquoted"; done
+msg_log "$wrapperlog" "[*] $0 $qcmd"
cmd="@WRAPPEE@"
case "$*" in
@@ -127,7 +128,7 @@
@_WRAP_ENV@
-eval "msg_log \$wrapperlog \"<.>\" $cmd"
+msg_log $wrapperlog "<.>" "$cmd"
wrapper_result=0
eval "$cmd" || wrapper_result="$?"
Home |
Main Index |
Thread Index |
Old Index