From owner-freebsd-questions@FreeBSD.ORG Thu Jul 22 01:03:07 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 136EE1065670 for ; Thu, 22 Jul 2010 01:03:07 +0000 (UTC) (envelope-from sterling@camdensoftware.com) Received: from wh2.interactivevillages.com (wh2.interactivevillages.com [75.125.250.34]) by mx1.freebsd.org (Postfix) with ESMTP id BFA568FC17 for ; Thu, 22 Jul 2010 01:03:06 +0000 (UTC) Received: from 174-21-99-21.tukw.qwest.net ([174.21.99.21] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Obk08-0001Vi-NX for freebsd-questions@freebsd.org; Wed, 21 Jul 2010 17:51:05 -0700 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Wed, 21 Jul 2010 18:03:01 -0700 Delivered-To: unknown Received: from mail.camdensoftware.com (75.125.250.34) by libertas.local.camdensoftware.com with POP3-SSL; 22 Jul 2010 01:02:36 -0000 Received: from 174-21-99-21.tukw.qwest.net ([174.21.99.21] helo=_HOSTNAME_) by wh2.interactivevillages.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1ObjzI-0001Q5-G8 for sterling@camdensoftware.com; Wed, 21 Jul 2010 17:50:13 -0700 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Wed, 21 Jul 2010 18:02:09 -0700 Date: Wed, 21 Jul 2010 18:00:58 -0700 From: Chip Camden To: claudiu vasadi Message-ID: <20100722010058.GA78456@libertas.local.camdensoftware.com> References: <4C478D04.6020005@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7AUc2qLy4jB3hD7Z" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Company: Camden Software Consulting URL: http://camdensoftware.com Resent-From: sterling@camdensoftware.com Resent-Date: Wed, 21 Jul 2010 18:02:09 -0700 Resent-To: Chip Camden X-GetLessMail: inspected by getlessmail X-Spam-Score: 0.000 Resent-From: sterling@camdensoftware.com Resent-Date: Wed, 21 Jul 2010 18:03:01 -0700 Resent-To: FreeBSD Questions X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - wh2.interactivevillages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - camdensoftware.com Resent-Message-Id: <20100722010307.136EE1065670@hub.freebsd.org> Cc: Subject: Re: rmconfig from all ports tree X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 01:03:07 -0000 --7AUc2qLy4jB3hD7Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoth claudiu vasadi on Thursday, 22 July 2010: > in the meantime I wrote the following quick script: >=20 >=20 >=20 > #!/bin/sh >=20 >=20 > # Create a list of all dir's > find /usr/ports/ -depth 2 -type directory -print > ports_structure >=20 > # for each discovered dir, cd into it and do rmconfig > file=3Dports_structure > while read dr1 > do > cd $dr1;make rmconfig > done<$file >=20 >=20 >=20 >=20 > very simple script if you ask me. tested and working. Any > suggestions/ideas/opinions are welcomed. > _______________________________________________ Since you asked, you don't really need to go to a file: find /usr/ports/ -depth 2 -type directory -print | while read dr1 do cd $dr1;make rmconfig done --=20 Sterling (Chip) Camden | sterling@camdensoftware.com | 2048D/3A978E4F http://camdensoftware.com | http://chipstips.com | http://chipsquips= .com --7AUc2qLy4jB3hD7Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iQEcBAEBAgAGBQJMR5hKAAoJEIpckszW26+RcR0IALbgMCZ9qBhAJpdqWR2DMxoW PbOye0XA+8A4fWd4Nt4dEm26CsKBx2NqIRpqbwWX4x1Fe8BaOTm4iSE0uGraj6Kq gbDjC3c6N7haZy4Zq0p+KtxhVOMEQxiRkclxWZGAp8YHIOKPEg6KsMYsGxJlcUpO BoqMxqk53gndpTsa8olJE6/4CQU5LLTKCNnFRZomlqPHTLQs22nb12AOhHoU0ZFX P/+sbjmNgK0ZsWBU/9Mskc0L/fefMV1JcOv//AUig8mQ5ZUtqg0kDjtCWN0Vnkok B/ROnhAEx7q12GpUFLvLZG/89VTIobTGE9ZMQq9vylwLxMT+UWFPzo4BgW75nMk= =1GXg -----END PGP SIGNATURE----- --7AUc2qLy4jB3hD7Z--