Ignore:
Timestamp:
May 25, 2015, 4:31:33 AM (4 years ago)
Author:
larryv@…
Message:

select-1.0: Don't repeat path to select file (NFC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/select-1.0.tcl

    r136720 r136721  
    5050    }
    5151
    52     xinstall -m 755 -d ${destroot}${prefix}/etc/select/${group}
    53     xinstall -m 644 ${file} ${destroot}${prefix}/etc/select/${group}/${name}
     52    set selectFile ${destroot}${prefix}/etc/select/$group/$name
    5453
    55     reinplace s|\${prefix}|${prefix}|g ${destroot}${prefix}/etc/select/${group}/${name}
    56     reinplace s|\${frameworks_dir}|${frameworks_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
    57     reinplace s|\${applications_dir}|${applications_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
    58     reinplace s|\${developer_dir}|${developer_dir}|g ${destroot}${prefix}/etc/select/${group}/${name}
     54    xinstall -m 755 -d [file dirname $selectFile]
     55    xinstall -m 644 $file $selectFile
     56
     57    reinplace s|\${prefix}|${prefix}|g $selectFile
     58    reinplace s|\${frameworks_dir}|${frameworks_dir}|g $selectFile
     59    reinplace s|\${applications_dir}|${applications_dir}|g $selectFile
     60    reinplace s|\${developer_dir}|${developer_dir}|g $selectFile
    5961}
    6062
Note: See TracChangeset for help on using the changeset viewer.