pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk Fixed the quoting. The shell is hard-coded to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2fe04ad64ab3
branches:  trunk
changeset: 496397:2fe04ad64ab3
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Jun 27 18:37:22 2005 +0000

description:
Fixed the quoting. The shell is hard-coded to /bin/sh instead of relying
on which(1). Correctly pass all arguments (even the first one) to the
build script. See PR 30362 for details.

diffstat:

 mk/bulk/do-sandbox-upload |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 2910cd26f8a6 -r 2fe04ad64ab3 mk/bulk/do-sandbox-upload
--- a/mk/bulk/do-sandbox-upload Mon Jun 27 18:17:57 2005 +0000
+++ b/mk/bulk/do-sandbox-upload Mon Jun 27 18:37:22 2005 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: do-sandbox-upload,v 1.3 2005/05/07 22:16:38 wiz Exp $
+#      $NetBSD: do-sandbox-upload,v 1.4 2005/06/27 18:37:22 rillig Exp $
 
 #
 # Script to start a sandbox build
@@ -7,5 +7,8 @@
 # See pkgsrc/doc/pkgsrc.txt for documentation!
 #
 
-sh=`which sh`
-chroot /usr/sandbox $sh -c "cd /usr/pkgsrc/ ; $sh mk/bulk/upload $@"
+sh="/bin/sh"
+upload="mk/bulk/upload"
+
+chroot /usr/sandbox \
+       $sh -c "cd /usr/pkgsrc && exec $sh $upload \"\$@\"" -- $upload "$@"



Home | Main Index | Thread Index | Old Index