From owner-freebsd-hackers@FreeBSD.ORG Thu May 15 09:14:26 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 47D9B37B401 for ; Thu, 15 May 2003 09:14:26 -0700 (PDT) Received: from mx3.boldinternet.net (blizzard.boldinternet.net [64.237.51.160]) by mx1.FreeBSD.org (Postfix) with SMTP id 32ED143FAF for ; Thu, 15 May 2003 09:14:25 -0700 (PDT) (envelope-from jeev@boldinternet.net) Received: (qmail 10137 invoked by uid 0); 15 May 2003 16:14:24 -0000 Received: from unknown (HELO mainframe) (63.206.136.254) by 0 with SMTP; 15 May 2003 16:14:24 -0000 From: "jeev" To: "'Jason Andresen'" , "'Daniel Lang'" Date: Thu, 15 May 2003 09:14:23 -0700 Message-ID: <000001c31afd$0d4687c0$0200a8c0@mainframe> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 In-Reply-To: <3EC3B902.3070202@mitre.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal cc: freebsd-hackers@freebsd.org 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 16:14:26 -0000 This has nothing to with readme's, I guess he just used that as an example. j > 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 _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"