<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/110858/">http://git.reviewboard.kde.org/r/110858/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On June 11th, 2013, 7:43 p.m. MSK, <b>David Faure</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="http://git.reviewboard.kde.org/r/110858/diff/1/?file=148904#file148904line16" style="color: black; font-weight: bold; text-decoration: underline;">build-progress.sh</a>
<span style="font-weight: normal;">
(Diff revision 1)
</span>
</th>
</tr>
</thead>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">16</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="k"> </span><span class="nv">dir</span><span class="o">=</span><span class="sb">`</span>ls -t | head -n 1 | xargs grep <span class="s2">"Entering directory"</span> | tail -n 1 | awk <span class="s2">"{print \\$4}"</span> | sed <span class="s2">"s'$KDESRCDIR/''g"</span><span class="sb">`</span></pre></td>
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">16</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "><span class="k"> </span><span class="nv">dir</span><span class="o">=</span><span class="sb">`</span>ls -t | head -n 1 | xargs grep<span class="hl"> -r</span> <span class="s2">"Entering directory"</span> | tail -n 1 | awk <span class="s2">"{print \\$4}"</span> | sed <span class="s2">"s'<span class="hl">^</span>$KDESRCDIR/''g"</span><span class="sb">`</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I thought grep -r wasn't portable?</pre>
</blockquote>
<p>On June 24th, 2013, 11:47 a.m. MSK, <b>Vadim Zhukov</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Yep, this should be "-R", of course. Many grep(1) implementations still accept "-r", but it should not be used, and this is just a typo, sorry.</pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Looks like -R is not needed here at all (although it doesn't hurt, either).</pre>
<br />
<p>- Vadim</p>
<br />
<p>On June 7th, 2013, 3:44 a.m. MSK, Vadim Zhukov wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for KDE Frameworks and David Faure.</div>
<div>By Vadim Zhukov.</div>
<p style="color: grey;"><i>Updated June 7, 2013, 3:44 a.m.</i></p>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Many KDE development scripts were written in a hurry and are:
* unportable, e.g.: using bash instead of sh
* unreliable, e.g.: using of $* instead of $@ in shell scripts
* unsecure, e.g.: using open($file) idiom in Perl scripts
I tweaked most obvious stuff that I found. This patch allows to better integrate KDE development process into OpenBSD ecosystem, and, probably, in ecosystem of other OSes. Not saying about getting more reliable results for non-usual cases, such as filenames with non-ASCII-alphanum-characters in them.
Given that KDE5 is coming, I think it's a good time to improve some core stuff. :)</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Light tested on OpenBSD-CURRENT, from KDE 4.10.1 till 4.10.4. As I'm not a KDE developer, this definitely needs more precise look.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>adddebug <span style="color: grey">(782db52)</span></li>
<li>build-progress.sh <span style="color: grey">(64247fc)</span></li>
<li>colorsvn <span style="color: grey">(84dec6b)</span></li>
<li>cvsblame <span style="color: grey">(bd3635e)</span></li>
<li>cvslastlog <span style="color: grey">(d1b4581)</span></li>
<li>kf5/functionUtilkde.pm <span style="color: grey">(79b6547)</span></li>
<li>nonsvnlist <span style="color: grey">(f94c3e8)</span></li>
<li>package_crystalsvg <span style="color: grey">(1502da2)</span></li>
<li>qt4/adapt-kconfiggroupsaver.pl <span style="color: grey">(ccd0e4e)</span></li>
<li>qt4/adapt-to-kde4-api.pl <span style="color: grey">(8364ef4)</span></li>
<li>qt4/adapt-to-new-kconfig2.pl <span style="color: grey">(b0e660f)</span></li>
<li>qt4/adapt-to-new-kdebug-api.pl <span style="color: grey">(cf96261)</span></li>
<li>qt4/adapt-to-qt4-api.pl <span style="color: grey">(c225c62)</span></li>
<li>qt4/convert-bad-qdatastream.pl <span style="color: grey">(779b0a0)</span></li>
<li>qt4/convert-display.pl <span style="color: grey">(2c971b6)</span></li>
<li>qt4/convert-find-to-indexof.pl <span style="color: grey">(f732684)</span></li>
<li>qt4/convert-kgenericfactory.pl <span style="color: grey">(f8355bd)</span></li>
<li>qt4/convert-killtimers.pl <span style="color: grey">(60be59e)</span></li>
<li>qt4/convert-kinstance.pl <span style="color: grey">(ca3d590)</span></li>
<li>qt4/convert-kkeydialog.pl <span style="color: grey">(f5581b4)</span></li>
<li>qt4/convert-kmimetype-pixmap.pl <span style="color: grey">(003c9fb)</span></li>
<li>qt4/convert-kstringhandler.pl <span style="color: grey">(0b42bc5)</span></li>
<li>qt4/convert-newq4headers.pl <span style="color: grey">(57c5148)</span></li>
<li>qt4/convert-q3cstring.pl <span style="color: grey">(a6a1919)</span></li>
<li>qt4/convert-qboxlayout.pl <span style="color: grey">(564e197)</span></li>
<li>qt4/convert-qgridlayout.pl <span style="color: grey">(367dca0)</span></li>
<li>qt4/convert-qiodevice_at.pl <span style="color: grey">(ff1ae8f)</span></li>
<li>qt4/convert-qlabel.pl <span style="color: grey">(4f0f3c4)</span></li>
<li>qt4/convert-qstringlatin1.pl <span style="color: grey">(76f3de6)</span></li>
<li>qt4/convert-qvhbox.pl <span style="color: grey">(7ab1afa)</span></li>
<li>qt4/convert-signal.pl <span style="color: grey">(be50e9d)</span></li>
<li>qt4/fix-link.pl <span style="color: grey">(34ae20b)</span></li>
<li>qt4/functionUtilkde.pm <span style="color: grey">(79b6547)</span></li>
<li>qt4/icons-kde3tokde4-renamer/icons-kde3to4-renamer.sh <span style="color: grey">(97cecd1)</span></li>
<li>qt4/remove-qt3-support.pl <span style="color: grey">(0e34b8a)</span></li>
<li>qt4/replaceRenamedDeprecated.sh <span style="color: grey">(fa7cd06)</span></li>
<li>qt4/search-qstringlist.sh <span style="color: grey">(2601441)</span></li>
<li>qt4/search-qwhatsthis.sh <span style="color: grey">(a34857c)</span></li>
<li>qt4/search-registeredApplications.sh <span style="color: grey">(31911ba)</span></li>
<li>svn-clean <span style="color: grey">(3c698bd)</span></li>
<li>svn2log.sh <span style="color: grey">(ef78f56)</span></li>
<li>svnaddcurrentdir <span style="color: grey">(53eb384)</span></li>
<li>svnforwardport <span style="color: grey">(f8dd9d6)</span></li>
<li>svnversions <span style="color: grey">(fbdca03)</span></li>
<li>unsercmake <span style="color: grey">(24170ab)</span></li>
<li>wcgrep <span style="color: grey">(477bab5)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/110858/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>