Changeset 32686 for trunk/dports/irc


Ignore:
Timestamp:
Jan 11, 2008, 7:35:33 AM (12 years ago)
Author:
ryandesign@…
Message:

infobot: don't use 'system install' when we can use xinstall, and no longer use deprecated 'cd' command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/irc/infobot/Portfile

    r30232 r32686  
    1717configure       {}
    1818build           {}
    19 destroot        { system "install -o root -m 755 -d ${destroot}${prefix}/bin"
     19destroot        { xinstall -m 755 -d ${destroot}${prefix}/bin
    2020                  set script [open "${prefix}/bin/infobot" w 0755]
    2121                  puts $script "#!/bin/sh"
    2222                  puts $script "cd ${prefix}/share/infobot && perl infobot"
    2323                  close $script
    24                   cd ${worksrcpath}
    25                   system "install -o root -m 755 -d ${destroot}${prefix}/share/infobot"
    26                   system "cp -Rp * ${destroot}${prefix}/share/infobot" }
     24                  xinstall -m 755 -d ${destroot}${prefix}/share/infobot
     25                  eval file copy [glob ${worksrcpath}/*] ${destroot}${prefix}/share/infobot }
    2726
Note: See TracChangeset for help on using the changeset viewer.