Revision
31801
Author
milosh@macports.org
Date
2007-12-07 14:14:38 -0800 (Fri, 07 Dec 2007)

Log Message

Tidy the installed files of txt2tags

Modified Paths

Diff

Modified: trunk/dports/textproc/txt2tags/Portfile (31800 => 31801)


--- trunk/dports/textproc/txt2tags/Portfile	2007-12-07 21:58:50 UTC (rev 31800)
+++ trunk/dports/textproc/txt2tags/Portfile	2007-12-07 22:14:38 UTC (rev 31801)
@@ -1,4 +1,4 @@
-# $Id:$
+# $Id$
 
 PortSystem 1.0
 
@@ -29,8 +29,13 @@
 destroot {
     xinstall -d ${destroot}${prefix}/share/doc/txt2tags
     xinstall ${worksrcpath}/txt2tags ${destroot}${prefix}/bin/
-    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/txt2tags/
-    copy ${worksrcpath}/extras ${destroot}${prefix}/share/doc/txt2tags/
-    copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/txt2tags/
+    fs-traverse file ${worksrcpath}/doc/ {
+        if {[file isfile ${file}]} {
+            copy ${file} ${destroot}${prefix}/share/doc/txt2tags/
+        }
+    }
+    xinstall -d ${destroot}${prefix}/share/txt2tags/
+    copy ${worksrcpath}/extras ${destroot}${prefix}/share/txt2tags/
+    copy ${worksrcpath}/samples ${destroot}${prefix}/share/txt2tags/
     xinstall -m 0644 ${worksrcpath}/txt2tags.1 ${destroot}${prefix}/share/man/man1/
 }