From owner-freebsd-hackers@FreeBSD.ORG Thu May 15 08:58:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2106237B401 for ; Thu, 15 May 2003 08:58:07 -0700 (PDT) Received: from smtpproxy2.mitre.org (smtpproxy2.mitre.org [192.80.55.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21A6F43F3F for ; Thu, 15 May 2003 08:58:06 -0700 (PDT) (envelope-from jandrese@mitre.org) Received: from avsrv2.mitre.org (avsrv2.mitre.org [128.29.154.4]) by smtpproxy2.mitre.org (8.12.9/8.12.8) with ESMTP id h4FFw2Ne011208; Thu, 15 May 2003 11:58:02 -0400 (EDT) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv2.mitre.org (8.12.9/8.12.8) with ESMTP id h4FFw1TZ003164; Thu, 15 May 2003 11:58:01 -0400 (EDT) Received: from mm112324-2k.mitre.org (128.29.3.65) by mailhub1.mitre.org with SMTP id 2447611; Thu, 15 May 2003 11:57:55 -0400 Message-ID: <3EC3B902.3070202@mitre.org> Date: Thu, 15 May 2003 11:57:54 -0400 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Lang References: <20030515152046.GB71411@atrbg11.informatik.tu-muenchen.de> <004a01c31af6$3c24fd80$0200a8c0@mainframe> <20030515153343.GC71411@atrbg11.informatik.tu-muenchen.de> In-Reply-To: <20030515153343.GC71411@atrbg11.informatik.tu-muenchen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: jeev cc: 'Kris Kennaway' Subject: Re: cvsupd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 15:58:07 -0000 Daniel Lang wrote: > Sure. CVSup does not delete files, it doesn't know about. > Certainly it doesn't know anything about fart and therefore > won't touch it. This is intended behaviour of CVSup. > (Think about the "make readmes" nightmare, that several > users, including me stubled across. The README.html files > never get deleted and so you are stuck with dozens of > virtually empty and outdated port directories). Nightmare? I always thought of it more as a nusance. Can't you run something like (note, I write in zsh, convert to whatever language you like): cd /usr/ports for foo ( * ) do if [[ -d $foo ]] then cd $foo for bar ( * ) do if [[ -d $bar ]] then rm $bar/README.html rmdir $bar fi done cd .. fi done make readmes You'll have to ignore a huge number of warnings about being unable to rmdir directories with files in them, but it seems pretty simple and shouldn't take too long to run on most machines. You could also probably make this a little safer by running some checks to make sure you don't cd into directories you don't have permission to, but that's left as an exercise for the reader. -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755