Source-Changes-HG archive

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

[src/trunk]: src chdir out of $tmpdir before removing it; some vendors' rm(1)...



details:   https://anonhg.NetBSD.org/src/rev/2abd605a0a35
branches:  trunk
changeset: 521368:2abd605a0a35
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Jan 29 08:46:59 2002 +0000

description:
chdir out of $tmpdir before removing it; some vendors' rm(1) programs will
not remove cwd....

diffstat:

 build.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 642a0d22f621 -r 2abd605a0a35 build.sh
--- a/build.sh  Tue Jan 29 08:12:10 2002 +0000
+++ b/build.sh  Tue Jan 29 08:46:59 2002 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-#  $NetBSD: build.sh,v 1.40 2002/01/19 16:49:28 tv Exp $
+#  $NetBSD: build.sh,v 1.41 2002/01/29 08:46:59 tv Exp $
 #
 # Top level build wrapper, for a system containing no tools.
 #
@@ -229,7 +229,7 @@
        tmpdir=${TMPDIR-/tmp}/nbbuild$$
 
        $runcmd mkdir $tmpdir || bomb "cannot mkdir: $tmpdir"
-       trap "rm -r -f $tmpdir" 0
+       trap "cd /; rm -r -f $tmpdir" 0
        trap "exit 1" 1 2 3 15
        $runcmd cd $tmpdir
 
@@ -343,7 +343,7 @@
 eval cat <<EOF $makewrapout
 #! /bin/sh
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.40 2002/01/19 16:49:28 tv Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.41 2002/01/29 08:46:59 tv Exp $
 #
 
 EOF



Home | Main Index | Thread Index | Old Index