rmconfig from all ports tree
Chip Camden
sterling at camdensoftware.com
Thu Jul 22 01:03:07 UTC 2010
Quoth claudiu vasadi on Thursday, 22 July 2010:
> in the meantime I wrote the following quick script:
>
>
>
> #!/bin/sh
>
>
> # Create a list of all dir's
> find /usr/ports/ -depth 2 -type directory -print > ports_structure
>
> # for each discovered dir, cd into it and do rmconfig
> file=ports_structure
> while read dr1
> do
> cd $dr1;make rmconfig
> done<$file
>
>
>
>
> 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
--
Sterling (Chip) Camden | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100722/4be95484/attachment.pgp
More information about the freebsd-questions
mailing list