summaryrefslogtreecommitdiff
path: root/bootstrap/cleanup
blob: c9f9ba9ed471fed19c54990fcf91db07b89181bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

# $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 $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 $wrkdir/$d; [ -f Makefile ] && make distclean)
done

rm -f Makefile.inc mk.conf.example $wrkdir/digest/.size */config.cache