pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts When installing the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3968ce81c1c8
branches:  trunk
changeset: 533976:3968ce81c1c8
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Oct 10 09:04:21 2007 +0000

description:
When installing the bootstrap kit from a directory, correctly handle the
case when ${prefix} already exists.

diffstat:

 pkgtools/pbulk/files/pbulk/scripts/client-clean |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 74275b9562e9 -r 3968ce81c1c8 pkgtools/pbulk/files/pbulk/scripts/client-clean
--- a/pkgtools/pbulk/files/pbulk/scripts/client-clean   Wed Oct 10 08:38:41 2007 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/client-clean   Wed Oct 10 09:04:21 2007 +0000
@@ -1,5 +1,5 @@
 #!@SH@
-# $NetBSD: client-clean,v 1.5 2007/09/22 00:12:33 rillig Exp $
+# $NetBSD: client-clean,v 1.6 2007/10/10 09:04:21 rillig Exp $
 
 . @PBULK_CONFIG@
 
@@ -14,7 +14,8 @@
 if [ -f "${bootstrapkit}" ]; then
        ${tar} -xzf ${bootstrapkit} -C /
 elif [ -d "${bootstrapkit}" ]; then
-       cp -R ${bootstrapkit} ${prefix}
+       [ -d ${prefix} ] || mkdir ${prefix}
+       cp -R ${bootstrapkit}/* ${prefix}
 else
        # Do nothing
 fi



Home | Main Index | Thread Index | Old Index