[74307] trunk/dports/_resources/port1.0/group/pure-1.0.tcl

ryandesign at macports.org ryandesign at macports.org
Sat Dec 11 12:44:12 PST 2010


Revision: 74307
          http://trac.macports.org/changeset/74307
Author:   ryandesign at macports.org
Date:     2010-12-11 12:44:07 -0800 (Sat, 11 Dec 2010)
Log Message:
-----------
pure-1.0.tcl: only install doc files if they exist (they don't for pure-docs)

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/pure-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/pure-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/pure-1.0.tcl	2010-12-11 20:27:30 UTC (rev 74306)
+++ trunk/dports/_resources/port1.0/group/pure-1.0.tcl	2010-12-11 20:44:07 UTC (rev 74307)
@@ -65,10 +65,11 @@
     
     post-destroot {
         xinstall -d ${destroot}${prefix}/share/doc/${name}
-        xinstall -m 644 -W ${worksrcpath} \
-            COPYING \
-            README \
-            ${destroot}${prefix}/share/doc/${name}
+        foreach f {COPYING README} {
+            if {[file exists ${worksrcpath}/${f}]} {
+                xinstall -m 644 ${worksrcpath}/${f} ${destroot}${prefix}/share/doc/${name}
+            }
+        }
         if {[file exists ${worksrcpath}/examples]} {
             xinstall -d ${destroot}${prefix}/share/examples
             copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101211/1148c011/attachment.html>


More information about the macports-changes mailing list