From owner-freebsd-current Sun Oct 11 03:24:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA10506 for freebsd-current-outgoing; Sun, 11 Oct 1998 03:24:12 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dt053nb4.san.rr.com (dt053nb4.san.rr.com [204.210.34.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA10455 for ; Sun, 11 Oct 1998 03:24:01 -0700 (PDT) (envelope-from Studded@gorean.org) Received: from gorean.org (Studded@localhost [127.0.0.1]) by dt053nb4.san.rr.com (8.8.8/8.8.8) with ESMTP id DAA04058; Sun, 11 Oct 1998 03:22:53 -0700 (PDT) (envelope-from Studded@gorean.org) Message-ID: <362086FC.A755F7D7@gorean.org> Date: Sun, 11 Oct 1998 03:22:52 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 2.2.7-STABLE-1009 i386) X-Accept-Language: en MIME-Version: 1.0 To: John Hay CC: Mark Murray , current@FreeBSD.ORG Subject: Re: /usr/include/sys/cam/scsi... References: <199810110803.KAA09151@zibbi.mikom.csir.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Hay wrote: > > > > >cd /usr/include; find . -type f -ctime +N -delete > > > > > > > >Where N (in days) is chosen to be a bit longer than the number of days > > > >between now and your last "make world". > > > > > > Don't do that. Includes are installed by `install -C', so most of them > > > should be very old. > > > > Huh!!?? Why does it work, then? > > Because you did a make installworld (or something to that effect) just > after that? (Or at least before you needed one of the includes that you > have deleted.) > > What I do once in a while to get rid of old stuff is something like this: > > cd /usr/src > make world > mv /usr/include /usr/include.old > mv /usr/share /usr/share.old > make -m share/mk installworld > rm -rf /usr/include.old /usr/share.old > > This will give me a clean /usr/include and /usr/share. Then for the rest > of the directories (/bin /sbin /lkm /usr/{bin,sbin,libdata,libexec,lib}) > I just look for the old ones and remove them with find. You can take care of /usr/include by doing 'make -DCLOBBER world'. I've long thought it would be nice to have similar targets for other directories, especially /usr/lib and the various binary directories. Of course it's easy to do with find, although I'd prefer to avoid the extra step. Doug -- *** Chief Operations Officer, DALnet IRC network *** Go PADRES! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message