Date: Wed, 21 Jul 2010 18:00:58 -0700 From: Chip Camden <sterling@camdensoftware.com> To: claudiu vasadi <claudiu.vasadi@gmail.com> Subject: Re: rmconfig from all ports tree Message-ID: <20100722010058.GA78456@libertas.local.camdensoftware.com> Resent-Message-ID: <20100722010307.136EE1065670@hub.freebsd.org> In-Reply-To: <AANLkTill3bVDQk3dZs2Sn5Z9NPreB3pJIMW2_79GXafa@mail.gmail.com> References: <AANLkTimgAAZPQ6HBB7gjYd1AdjkFgteTuCDHG1HAc-vJ@mail.gmail.com> <AANLkTilrDpZrfZndEXBl0tTOcvWTSH5PNyZk0KML-JTW@mail.gmail.com> <4C478D04.6020005@FreeBSD.org> <AANLkTimqY2ZqdXMUG0ulWB4LpyaB-VF7eJ_6la2cf4EQ@mail.gmail.com> <AANLkTill3bVDQk3dZs2Sn5Z9NPreB3pJIMW2_79GXafa@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100722010058.GA78456>