<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6ac455c4b96259acd689e49577bd8014482f2a4d">https://github.com/macports/macports-ports/commit/6ac455c4b96259acd689e49577bd8014482f2a4d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 6ac455c4b96259acd689e49577bd8014482f2a4d
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Aug 26 20:41:13 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> unixODBC: Use expansion operator
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> ...to avoid the need for foreach.
</span>---
databases/unixODBC/Portfile | 27 +++++++++------------------
1 file changed, 9 insertions(+), 18 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/unixODBC/Portfile b/databases/unixODBC/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1f5b422..51b7640 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/unixODBC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/unixODBC/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,29 +45,20 @@ use_parallel_build yes
</span> post-destroot {
# DOCS
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach doc [glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0644 $doc ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}[glob ${worksrcpath}/\[A-Z\]*\[A-Z\]\[A-Z\]\[A-Z\] ${worksrcpath}/doc/*.\[a-z\]\[a-z\]\[a-z\]*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/doc/${name}
</span> foreach dir {AdministratorManual lst ProgrammerManual ProgrammerManual/Tutorial UserManual} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/$dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach file [glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0644 $file ${destroot}${prefix}/share/doc/${name}/$dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/${dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {*}[glob ${worksrcpath}/doc/$dir/*.\[a-z\]\[a-z\]\[a-z\]*] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/share/doc/${name}/${dir}
</span> }
# TEMPLATES
xinstall -d -m 0755 ${destroot}${prefix}/share/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach template [glob ${filespath}/*.template] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0644 $template ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach driver [glob ${destroot}${prefix}/share/${name}/*.driver.*] {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|__PREFIX__|${prefix}|g" $driver
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 {*}[glob ${filespath}/*.template] ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|__PREFIX__|${prefix}|g" {*}[glob ${destroot}${prefix}/share/${name}/*.driver.*]
</span>
# CONFIG
foreach ini [glob ${destroot}${prefix}/etc/*.ini] {
</pre><pre style='margin:0'>
</pre>