[32869] trunk/dports/java/dom4j/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jan 14 01:21:23 PST 2008


Revision: 32869
          http://trac.macosforge.org/projects/macports/changeset/32869
Author:   ryandesign at macports.org
Date:     2008-01-14 01:21:22 -0800 (Mon, 14 Jan 2008)

Log Message:
-----------
dom4j: simplify the dos-to-unix line ending conversion of build.xml (method copied from the samdump2 portfile)

Modified Paths:
--------------
    trunk/dports/java/dom4j/Portfile

Modified: trunk/dports/java/dom4j/Portfile
===================================================================
--- trunk/dports/java/dom4j/Portfile	2008-01-14 09:10:38 UTC (rev 32868)
+++ trunk/dports/java/dom4j/Portfile	2008-01-14 09:21:22 UTC (rev 32869)
@@ -34,7 +34,7 @@
 
 pre-patch {
 	# Convert build.xml to unix line feeds before we try to patch it
-	system "cat ${worksrcpath}/build.xml | tr -d '\r' > ${worksrcpath}/build.xml.tmp && mv ${worksrcpath}/build.xml.tmp ${worksrcpath}/build.xml"
+	reinplace "s/\r$//g" ${worksrcpath}/build.xml
 }
 
 destroot {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080114/fadf3eda/attachment.html


More information about the macports-changes mailing list