summaryrefslogtreecommitdiff
path: root/bootstrap/cleanup
diff options
context:
space:
mode:
authorgrant <grant>2004-03-11 13:10:45 +0000
committergrant <grant>2004-03-11 13:10:45 +0000
commitce570487b7a8407a5ea4487715a1c7d61db32ae9 (patch)
tree60ebe27a07089f0e8fd4cb99392de15839317b0e /bootstrap/cleanup
parent4bcc598fab28019a1e026d78807135642b5714ab (diff)
downloadpkgsrc-ce570487b7a8407a5ea4487715a1c7d61db32ae9.tar.gz
catch up to bootstrap being in pkgsrc.
Diffstat (limited to 'bootstrap/cleanup')
-rwxr-xr-xbootstrap/cleanup10
1 files changed, 6 insertions, 4 deletions
diff --git a/bootstrap/cleanup b/bootstrap/cleanup
index f9667d88f31..c9f9ba9ed47 100755
--- a/bootstrap/cleanup
+++ b/bootstrap/cleanup
@@ -1,17 +1,19 @@
#! /bin/sh
-# $NetBSD: cleanup,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+# $NetBSD: cleanup,v 1.2 2004/03/11 13:10:45 grant Exp $
#
+wrkdir=work
+
if [ -d /usr/ccs/bin -a -x /usr/ccs/bin/make ]; then
PATH=/usr/ccs/bin:$PATH; export PATH
fi
-(cd 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; \
+(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
- (cd $d; [ -f Makefile ] && make distclean)
+ (cd $wrkdir/$d; [ -f Makefile ] && make distclean)
done
-rm -f Makefile.inc mk.conf.example digest/.size */config.cache
+rm -f Makefile.inc mk.conf.example $wrkdir/digest/.size */config.cache