most recent changes, diff for gwhich

Index: sysutils/gwhich/Portfile
--- sysutils/gwhich/Portfile (revision 32782)
+++ sysutils/gwhich/Portfile (revision 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
}
}
}