Changeset 40606


Ignore:
Timestamp:
Oct 8, 2008, 8:38:00 AM (12 years ago)
Author:
jmr@…
Message:

sword: remove use of cd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/sword/Portfile

    r30951 r40606  
    4949
    5050post-destroot {
    51         cd ${worksrcpath}/samples/mods.d
    5251        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
    53         xinstall -m 0644 globals.conf ${destroot}${prefix}/share/${name}/mods.d
     52        xinstall -m 0644 ${worksrcpath}/samples/mods.d/globals.conf ${destroot}${prefix}/share/${name}/mods.d
    5453
    5554        xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules
    5655        system "touch ${destroot}${prefix}/share/${name}/modules/.turd"
    5756
    58         cd ${worksrcpath}
    5957        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    60         xinstall -m 0644 README ${destroot}${prefix}/share/doc/${name}
    61         xinstall -m 0644 INSTALL ${destroot}${prefix}/share/doc/${name}
    62         xinstall -m 0644 LICENSE ${destroot}${prefix}/share/doc/${name}
    63         foreach dir [exec find samples -type d] {
     58        xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
     59        foreach dir [exec find ${worksrcpath}/samples -type d] {
    6460                xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/${dir}
    6561        }
    66         foreach file [exec find samples -type f] {
     62        foreach file [exec find ${worksrcpath}/samples -type f] {
    6763                xinstall -m 0644 ${file} ${destroot}${prefix}/share/doc/${name}/${file}
    6864        }
Note: See TracChangeset for help on using the changeset viewer.