From nobody@FreeBSD.org  Tue Jun  6 17:59:46 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3FF3216AA84
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jun 2006 17:59:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2945643D6E
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  6 Jun 2006 17:59:44 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k56Hxhg2016458
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 6 Jun 2006 17:59:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k56HxhxJ016457;
	Tue, 6 Jun 2006 17:59:43 GMT
	(envelope-from nobody)
Message-Id: <200606061759.k56HxhxJ016457@www.freebsd.org>
Date: Tue, 6 Jun 2006 17:59:43 GMT
From: Sokolov Alexey <sokolhacker@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: no problem
X-Send-Pr-Version: www-2.3

>Number:         98596
>Category:       ports
>Synopsis:       [patch] shell script to clean up ports work directories
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 06 18:00:30 GMT 2006
>Closed-Date:    Wed Jun 28 16:51:58 GMT 2006
>Last-Modified:  Wed Jun 28 16:51:58 GMT 2006
>Originator:     Sokolov Alexey
>Release:        FreeBSD 6.1-STABLE
>Organization:
SokolSoft (sokolsoft.org.ru)
>Environment:
soko1$ uname -a
FreeBSD localhost 6.1-STABLE FreeBSD 6.1-STABLE #0: Sun May 28 20:05:04 UTC 2006     root@localhost:/usr/src/sys/i386/compile/MYPC  i386
>Description:
Clean ports work directories
>How-To-Repeat:
-
>Fix:
http://sokolsoft.org.ru/freebsd/scripts/cleanwrk.sh.txt
>Release-Note:
>Audit-Trail:

From: Edwin Groothuis <edwin@mavetju.org>
To: Sokolov Alexey <sokolhacker@mail.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/98596: no problem
Date: Wed, 7 Jun 2006 09:29:11 +1000

 On Tue, Jun 06, 2006 at 05:59:43PM +0000, Sokolov Alexey wrote:
 > http://sokolsoft.org.ru/freebsd/scripts/cleanwrk.sh.txt
 
 Try to add -maxdepth 3 (which only will work if you start it from
 /foo/bar, and it doesn't respect ${PORTSDIR} which can be gotten
 from /etc/make.conf or the environment variables.
 
 Edwin
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |          Weblog: http://weblog.barnet.com.au/edwin/

From: "Roberto Lima" <smuxinho@gmail.com>
To: bug-followup@FreeBSD.org, sokolhacker@mail.ru
Cc:  
Subject: Re: ports/98596: no problem
Date: Tue, 6 Jun 2006 22:46:09 -0300

 Hi,
 To clean my ports i generate the 'works' file with:
 find /usr/ports -iname work > /root/works
 and i use this:
 
 --- BEGIN ---
 #!/bin/sh
 works=/root/works
 for rmwork in `cat $works`; do
 if [ $rmwork ]; then
    rm -rf $rmwork
 fi
 done
 --- END ---
 
 
 Thanks for appreciate and sorry for my bad english.
 Roberto.
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Fri Jun 9 20:06:38 UTC 2006 
State-Changed-Why:  
What do you expect us to do with this script?  I can't think of a place 
where to put it.  And honestly, it's rather trivial anyway... 


Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Jun 9 20:06:38 UTC 2006 
Responsible-Changed-Why:  
Asked question 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98596 
State-Changed-From-To: feedback->open 
State-Changed-By: pav 
State-Changed-When: Fri Jun 9 21:36:18 UTC 2006 
State-Changed-Why:  
Often I forget to make ' make clean ' after assembly of port. 
To do: 'cd/usr/ports ** make clean' - very long; portupgrade 
(sysutils/portupgrade) I do not use (it concerning a key "-C"). And the 
script is logical for putting here: 
/usr/ports/Tools/scripts/cleanwrk.sh 
Forgive if has distracted you from work... Wanted in fact as better... 


Responsible-Changed-From-To: pav->freebsd-ports-bugs 
Responsible-Changed-By: pav 
Responsible-Changed-When: Fri Jun 9 21:36:18 UTC 2006 
Responsible-Changed-Why:  
Answer received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98596 
State-Changed-From-To: open->closed 
State-Changed-By: novel 
State-Changed-When: Wed Jun 28 16:49:50 UTC 2006 
State-Changed-Why:  
The task is way too trivial and doesn't worth putting a special script 
into ports/Tools/scripts, so I'm closing it or it will hang open 
forever. Thanks for your efforts anyway. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98596 
>Unformatted:
