summaryrefslogtreecommitdiff
path: root/bootstrap/cleanup
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-03-11 13:03:58 +0000
committergrant <grant@pkgsrc.org>2004-03-11 13:03:58 +0000
commitda1bdcdddebd7d438ea364f2408f87726ffaf5b7 (patch)
tree3434d463e0789e4ff8d9e78dbc0ec913e5aec800 /bootstrap/cleanup
parentb52e1aea154aee07ce4347579905e31fcbf4ecab (diff)
downloadpkgsrc-da1bdcdddebd7d438ea364f2408f87726ffaf5b7.tar.gz
import the required bits of bootstrap-pkgsrc from 20040311.
Diffstat (limited to 'bootstrap/cleanup')
-rwxr-xr-xbootstrap/cleanup17
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstrap/cleanup b/bootstrap/cleanup
new file mode 100755
index 00000000000..f9667d88f31
--- /dev/null
+++ b/bootstrap/cleanup
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+# $NetBSD: cleanup,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+#
+
+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; \
+ [ -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)
+done
+
+rm -f Makefile.inc mk.conf.example digest/.size */config.cache