[32783] trunk/dports/sysutils/gwhich/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Jan 13 03:24:38 PST 2008
Revision: 32783
http://trac.macosforge.org/projects/macports/changeset/32783
Author: ryandesign at macports.org
Date: 2008-01-13 03:24:37 -0800 (Sun, 13 Jan 2008)
Log Message:
-----------
gwhich: no longer use the deprecated 'cd' command
Modified Paths:
--------------
trunk/dports/sysutils/gwhich/Portfile
Modified: trunk/dports/sysutils/gwhich/Portfile
===================================================================
--- trunk/dports/sysutils/gwhich/Portfile 2008-01-13 11:15:07 UTC (rev 32782)
+++ trunk/dports/sysutils/gwhich/Portfile 2008-01-13 11:24:37 UTC (rev 32783)
@@ -27,14 +27,12 @@
--program-prefix=g
post-destroot {
- cd ${destroot}${prefix}/share/info
- file rename which.info gwhich.info
+ file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info
if {[variant_isset with_default_names]} {
foreach d {bin share/info share/man/man1} {
- 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/c6e7db76/attachment.html
More information about the macports-changes
mailing list