pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/bootstrap In mkdir_p, iterate the directory names. (i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba02ed7e1298
branches:  trunk
changeset: 470760:ba02ed7e1298
user:      tv <tv%pkgsrc.org@localhost>
date:      Thu Mar 11 20:49:09 2004 +0000

description:
In mkdir_p, iterate the directory names.  (install-sh doesn't.)

diffstat:

 bootstrap/bootstrap |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 6cb3bdc0222f -r ba02ed7e1298 bootstrap/bootstrap
--- a/bootstrap/bootstrap       Thu Mar 11 20:47:56 2004 +0000
+++ b/bootstrap/bootstrap       Thu Mar 11 20:49:09 2004 +0000
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# $NetBSD: bootstrap,v 1.6 2004/03/11 20:47:56 tv Exp $
+# $NetBSD: bootstrap,v 1.7 2004/03/11 20:49:09 tv Exp $
 #
 #
 # Copyright (c) 2001-2002 Alistair G. Crooks.  All rights reserved.
@@ -162,7 +162,9 @@
 # install-sh wrapper instead.
 mkdir_p()
 {
-       run_cmd "($shprog ./files/install-sh -d -o $user -g $group -m 755 $@)"
+       for dir in $@; do
+               run_cmd "($shprog ./files/install-sh -d -o $user -g $group -m 755 $dir)"
+       done
 }
 
 copy_src()



Home | Main Index | Thread Index | Old Index