[32788] trunk/dports/sysutils/diffutils/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Jan 13 04:24:51 PST 2008
Revision: 32788
http://trac.macosforge.org/projects/macports/changeset/32788
Author: ryandesign at macports.org
Date: 2008-01-13 04:24:43 -0800 (Sun, 13 Jan 2008)
Log Message:
-----------
diffutils: no longer use the deprecated 'cd' command
Modified Paths:
--------------
trunk/dports/sysutils/diffutils/Portfile
Modified: trunk/dports/sysutils/diffutils/Portfile
===================================================================
--- trunk/dports/sysutils/diffutils/Portfile 2008-01-13 12:14:17 UTC (rev 32787)
+++ trunk/dports/sysutils/diffutils/Portfile 2008-01-13 12:24:43 UTC (rev 32788)
@@ -27,8 +27,7 @@
set docdir ${prefix}/share/doc/${name}-${version}
post-destroot {
- cd ${destroot}${prefix}/share/info
- move diff.info gdiff.info
+ move ${destroot}${prefix}/share/info/diff.info ${destroot}${prefix}/share/info/gdiff.info
xinstall -m 0755 -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \
@@ -41,10 +40,9 @@
variant with_default_names description {Install files without 'g' prefix} {
post-destroot {
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/74a28526/attachment.html
More information about the macports-changes
mailing list