[24403] trunk/dports/sysutils/kernel-tools/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 23 20:53:00 PDT 2007


Revision: 24403
          http://trac.macosforge.org/projects/macports/changeset/24403
Author:   sfiera at macports.org
Date:     2007-04-23 20:53:00 -0700 (Mon, 23 Apr 2007)

Log Message:
-----------
Changes the way fs-traverse is used so that the behavior can be changed for lists of directories.

Modified Paths:
--------------
    trunk/dports/sysutils/kernel-tools/Portfile

Modified: trunk/dports/sysutils/kernel-tools/Portfile
===================================================================
--- trunk/dports/sysutils/kernel-tools/Portfile	2007-04-24 03:20:46 UTC (rev 24402)
+++ trunk/dports/sysutils/kernel-tools/Portfile	2007-04-24 03:53:00 UTC (rev 24403)
@@ -24,18 +24,22 @@
 
 destroot {
   cd ${worksrcpath}/usr/local
-  fs-traverse file include lib man {
-    switch -exact [file type ${file}] {
-      file      { xinstall -m 644 ${file} ${destroot}${prefix}/${file} }
-      directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
-      link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+  foreach top {include lib man} {
+    fs-traverse file ${top} {
+      switch -exact [file type ${file}] {
+        file      { xinstall -m 644 ${file} ${destroot}${prefix}/${file} }
+        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
+        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+      }
     }
   }
-  fs-traverse file bin libexec {
-    switch -exact [file type ${file}] {
-      file      { xinstall -m 755 ${file} ${destroot}${prefix}/${file} }
-      directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
-      link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+  foreach top {bin libexec} {
+    fs-traverse file ${top} {
+      switch -exact [file type ${file}] {
+        file      { xinstall -m 755 ${file} ${destroot}${prefix}/${file} }
+        directory { xinstall -d -m 755 ${destroot}${prefix}/${file} }
+        link      { system "ln -sf [file readlink ${file}] ${destroot}${prefix}/${file}" }
+      }
     }
   }
 }

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


More information about the macports-changes mailing list