summaryrefslogtreecommitdiff
path: root/bootstrap/cleanup
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-10-11 13:50:17 +0000
committertv <tv@pkgsrc.org>2004-10-11 13:50:17 +0000
commit24856f492e58ee00b167299a051c5d948df39470 (patch)
treec623e875b075e3c56b01d49cacf9d8f1f90dcd89 /bootstrap/cleanup
parent36bda079b74d436c78f10358451b92ccdffc99cd (diff)
downloadpkgsrc-24856f492e58ee00b167299a051c5d948df39470.tar.gz
Why all the complexity? Just remove $wrkdir. (The previous incarnation left
a still-littered "work" directory; rather, this should nuke the whole thing.)
Diffstat (limited to 'bootstrap/cleanup')
-rwxr-xr-xbootstrap/cleanup18
1 files changed, 3 insertions, 15 deletions
diff --git a/bootstrap/cleanup b/bootstrap/cleanup
index ffa652acd40..3178df70341 100755
--- a/bootstrap/cleanup
+++ b/bootstrap/cleanup
@@ -1,19 +1,7 @@
#! /bin/sh
-
-# $NetBSD: cleanup,v 1.6 2004/05/25 02:25:21 jschauma Exp $
-#
+# $NetBSD: cleanup,v 1.7 2004/10/11 13:50:17 tv Exp $
wrkdir=${1:-work}
-if [ -d /usr/ccs/bin -a -x /usr/ccs/bin/make ]; then
- PATH=/usr/ccs/bin:$PATH; export PATH
-fi
-
-(cd $wrkdir/bmake && rm -f *.o lst.lib/*.o bmake bmake.boot Makefile confdefs.h config.h config.log config.status config.cache makefile.boot lst.lib/makefile.boot; \
- [ -f mk/bsd.man.mk.orig ] && mv -f mk/bsd.man.mk.orig mk/bsd.man.mk; \
- [ -f mk/bsd.lib.mk.orig ] && mv -f mk/bsd.lib.mk.orig mk/bsd.lib.mk; )
-for d in libnbcompat digest tnftp pax pkg_install mtree sed; do
- (rm -rf $wrkdir/$d)
-done
-
-rm -f Makefile.inc mk.conf.example $wrkdir/digest/.size */config.cache
+rm -f -r $wrkdir
+rm -f Makefile.inc mk.conf.example */config.cache