[32796] trunk/dports/sysutils/file/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun Jan 13 05:09:07 PST 2008


Revision: 32796
          http://trac.macosforge.org/projects/macports/changeset/32796
Author:   ryandesign at macports.org
Date:     2008-01-13 05:08:38 -0800 (Sun, 13 Jan 2008)

Log Message:
-----------
file: no longer use the deprecated 'cd' command

Modified Paths:
--------------
    trunk/dports/sysutils/file/Portfile

Modified: trunk/dports/sysutils/file/Portfile
===================================================================
--- trunk/dports/sysutils/file/Portfile	2008-01-13 12:48:33 UTC (rev 32795)
+++ trunk/dports/sysutils/file/Portfile	2008-01-13 13:08:38 UTC (rev 32796)
@@ -32,10 +32,9 @@
 variant with_default_names description {don't prefix names with a 'g'} {
     post-destroot {
         foreach d {bin share/man/man1 share/man/man3 share/man/man5} {
-            cd ${destroot}${prefix}/$d
-            foreach a [glob g*] {
-                regexp g(.+) $a dummy b
-                file link -hard $b g$b
+            foreach a [glob -directory ${destroot}${prefix}/$d g*] {
+                regexp /g(.+)\$ $a dummy b
+                file link -hard ${destroot}${prefix}/$d/$b $a
             }
         }
     }

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


More information about the macports-changes mailing list