Ignore:
Timestamp:
Jan 13, 2008, 11:24:37 AM (12 years ago)
Author:
ryandesign@…
Message:

gwhich: no longer use the deprecated 'cd' command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/gwhich/Portfile

    r30254 r32783  
    2828
    2929post-destroot {
    30     cd ${destroot}${prefix}/share/info
    31     file rename which.info gwhich.info
     30    file rename ${destroot}${prefix}/share/info/which.info ${destroot}${prefix}/share/info/gwhich.info
    3231    if {[variant_isset with_default_names]} {
    3332        foreach d {bin share/info share/man/man1} {
    34             cd ${destroot}${prefix}/$d
    35             foreach a [glob g*] {
    36                 regexp g(.+) $a dummy b
    37                 file link -hard $b g$b
     33            foreach a [glob -directory ${destroot}${prefix}/$d g*] {
     34                regexp /g(.+)\$ $a dummy b
     35                file link -hard ${destroot}${prefix}/$d/$b $a
    3836            }
    3937        }
Note: See TracChangeset for help on using the changeset viewer.