ffde52afb5
Add a new flag to mkbinarykit that circumvents building a kit -- this allows you to first run ./bootstrap and then just ./mkbinarykit so you don't have to rebuild it again. Minor cleanup (sort OPSYS)
19 lines
666 B
Bash
Executable file
19 lines
666 B
Bash
Executable file
#! /bin/sh
|
|
|
|
# $NetBSD: cleanup,v 1.5 2004/03/31 23:46:14 jschauma 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
|