Ignore:
Timestamp:
Dec 13, 2013, 9:08:37 AM (6 years ago)
Author:
mww@…
Message:

try to make a narrower guess on the directory name to be changed

File:
1 edited

Legend:

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

    r114592 r114646  
    8686                [llength ${distfiles}] > 0 && \
    8787                [llength [glob -nocomplain ${workpath}/*]] > 0} {
    88             foreach item [glob ${workpath}/*] {
    89                 if {[file isdirectory ${item}]} {
    90                     move ${item} ${worksrcpath}
    91                     break
    92                 }
     88            if {[file exists [glob ${workpath}/${github.author}-${github.project}-*]] && \
     89                [file isdirectory [glob ${workpath}/${github.author}-${github.project}-*]]} {
     90                move [glob ${workpath}/${github.author}-${github.project}-*] ${workpath}/${name}-${version}
    9391            }
    9492        }
Note: See TracChangeset for help on using the changeset viewer.