[114646] trunk/dports/_resources/port1.0/group/github-1.0.tcl
mww at macports.org
mww at macports.org
Fri Dec 13 01:08:38 PST 2013
Revision: 114646
https://trac.macports.org/changeset/114646
Author: mww at macports.org
Date: 2013-12-13 01:08:37 -0800 (Fri, 13 Dec 2013)
Log Message:
-----------
try to make a narrower guess on the directory name to be changed
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/github-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/github-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/github-1.0.tcl 2013-12-13 08:34:19 UTC (rev 114645)
+++ trunk/dports/_resources/port1.0/group/github-1.0.tcl 2013-12-13 09:08:37 UTC (rev 114646)
@@ -85,11 +85,9 @@
${master_sites} eq ${github.master_sites} && \
[llength ${distfiles}] > 0 && \
[llength [glob -nocomplain ${workpath}/*]] > 0} {
- foreach item [glob ${workpath}/*] {
- if {[file isdirectory ${item}]} {
- move ${item} ${worksrcpath}
- break
- }
+ if {[file exists [glob ${workpath}/${github.author}-${github.project}-*]] && \
+ [file isdirectory [glob ${workpath}/${github.author}-${github.project}-*]]} {
+ move [glob ${workpath}/${github.author}-${github.project}-*] ${workpath}/${name}-${version}
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131213/559e0e4e/attachment.html>
More information about the macports-changes
mailing list