ports/151879: [patch] port www/tomcat41 replace ugly find construct

Olli Hauer ohauer at FreeBSD.org
Mon Nov 1 23:20:11 UTC 2010


>Number:         151879
>Category:       ports
>Synopsis:       [patch] port www/tomcat41 replace ugly find construct
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 01 23:20:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Olli Hauer <ohauer at FreeBSD.org>
>Release:        FreeBSD 7.3-RELEASE-p3 i386
>Organization:
>Environment:


>Description:
Replace a ugly find construct in post-patch phase


>How-To-Repeat:
>Fix:


--- patch_tomcat41.txt begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/tomcat41/Makefile,v
retrieving revision 1.72
diff -u -r1.72 Makefile
--- Makefile	8 Dec 2008 06:43:50 -0000	1.72
+++ Makefile	1 Nov 2010 22:05:40 -0000
@@ -78,7 +78,7 @@
 
 post-patch:
 	@${ECHO_MSG} -n ">> Removing unneeded files..."
-	@${RM} -f `${FIND} ${WRKSRC} -name '*.bat'` `${FIND} ${WRKSRC} -name '*.orig'` `${FIND} ${WRKSRC} -name '*.exe'`
+	@${FIND} ${WRKSRC} -type f \( -name '*.bak' -or -name '*.bat' -or -name '*.dll' -or -name '*.exe' -or -name '*.orig' \) -delete
 	@${ECHO_MSG} " [ DONE ]"
 
 .for file in ${REPLACE_FILES}
--- patch_tomcat41.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list