* [Buildroot] [pull request] Pull request for branch pkg-script-fix
@ 2010-07-26 13:15 Thomas Petazzoni
2010-07-26 13:15 ` [Buildroot] [PATCH 1/1] Improvements to the package conversion status script Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2010-07-26 13:15 UTC (permalink / raw)
To: buildroot
The following changes since commit 3435c1afb58307240be8e4607b5bb7d239fac4e9:
Peter Korsgaard (1):
kconfig: implement KCONFIG_PROBABILITY for rand{,package}config
are available in the git repository at:
git://git.busybox.net/~tpetazzoni/git/buildroot pkg-script-fix
Thomas Petazzoni (1):
Improvements to the package conversion status script
scripts/pkg-stats | 119 ++++++++++++++++++++++++++++++++++-------------------
1 files changed, 77 insertions(+), 42 deletions(-)
Thanks,
--
Thomas Petazzoni
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] Improvements to the package conversion status script
2010-07-26 13:15 [Buildroot] [pull request] Pull request for branch pkg-script-fix Thomas Petazzoni
@ 2010-07-26 13:15 ` Thomas Petazzoni
2010-07-26 20:49 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2010-07-26 13:15 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
scripts/pkg-stats | 119 ++++++++++++++++++++++++++++++++++-------------------
1 files changed, 77 insertions(+), 42 deletions(-)
diff --git a/scripts/pkg-stats b/scripts/pkg-stats
index 1174ef0..01af89d 100755
--- a/scripts/pkg-stats
+++ b/scripts/pkg-stats
@@ -36,6 +36,12 @@ td {
td.centered {
text-align: center;
}
+tr.wrong td {
+ background: #ff9a69;
+}
+tr.correct td {
+ background: #d2ffc4;
+}
</style>
</head>
@@ -78,12 +84,7 @@ for i in $(find package/ -name '*.mk') ; do
continue
fi
- found=0
-
- echo "<tr>"
- echo "<td>$cnt</td>"
cnt=$((cnt+1))
- echo "<td>$i</td>"
is_auto_host=0
is_auto_target=0
@@ -92,18 +93,74 @@ for i in $(find package/ -name '*.mk') ; do
is_manual_target=0
is_manual_host=0
- echo "<td class=\"centered\">"
if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
is_auto_host=1
+ fi
+
+ if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+ is_auto_target=1
+ fi
+
+ if grep -E "\(call GENTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
+ is_pkg_host=1
+ fi
+
+ if grep -E "\(call GENTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
+ is_pkg_target=1
+ fi
+
+ pkg=$(basename $i)
+ pkg=${pkg%.mk}
+
+ if grep "^host-$pkg:" $i > /dev/null ; then
+ is_manual_host=1
+ fi
+
+ if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then
+ is_manual_target=1
+ fi
+
+ tasks=""
+
+ if [ $is_manual_target -eq 1 ] ; then
+ if grep "/configure" $i > /dev/null ; then
+ tasks=$tasks"<li>convert package to autotools ?</li>"
+ convert_to_target_autotools=$((convert_to_target_autotools+1))
+ else
+ tasks=$tasks"<li>convert to generic target</li>"
+ convert_to_generic_target=$((convert_to_generic_target+1))
+ fi
+ fi
+
+ if [ $is_manual_host -eq 1 ]; then
+ if grep "/configure" $i > /dev/null ; then
+ tasks=$tasks"<li>convert package to autotools ?</li>"
+ convert_to_host_autotools=$((convert_to_host_autotools+1))
+ else
+ tasks=$tasks"<li>convert to generic host</li>"
+ convert_to_generic_host=$((convert_to_generic_host+1))
+ fi
+ fi
+
+ if test -n "$tasks" ; then
+ echo "<tr class=\"wrong\">"
+ else
+ echo "<tr class=\"correct\">"
+ fi
+
+ echo "<td>$cnt</td>"
+ echo "<td>$i</td>"
+
+ echo "<td class=\"centered\">"
+ if [ $is_auto_host -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
fi
+ echo "</td>"
echo "<td class=\"centered\">"
- if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
- found=1
- is_auto_target=1
+ if [ $is_auto_target -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
@@ -111,9 +168,7 @@ for i in $(find package/ -name '*.mk') ; do
echo "</td>"
echo "<td class=\"centered\">"
- if grep -E "\(call GENTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
- found=1
- is_pkg_host=1
+ if [ $is_pkg_host -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
@@ -121,22 +176,15 @@ for i in $(find package/ -name '*.mk') ; do
echo "</td>"
echo "<td class=\"centered\">"
- if grep -E "\(call GENTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
- found=1
- is_pkg_target=1
+ if [ $is_pkg_target -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
fi
echo "</td>"
- pkg=$(basename $i)
- pkg=${pkg%.mk}
-
echo "<td class=\"centered\">"
- if grep "^host-$pkg:" $i > /dev/null ; then
- found=1
- is_manual_host=1
+ if [ $is_manual_host -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
@@ -144,9 +192,7 @@ for i in $(find package/ -name '*.mk') ; do
echo "</td>"
echo "<td class=\"centered\">"
- if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then
- found=1
- is_manual_target=1
+ if [ $is_manual_target -eq 1 ] ; then
echo "<b>YES</b>"
else
echo "NO"
@@ -155,22 +201,7 @@ for i in $(find package/ -name '*.mk') ; do
echo "<td>"
echo "<ul>"
- if grep "/configure" $i > /dev/null ; then
- echo "<li>convert package to autotools ?</li>"
- convert_to_autotools=$((convert_to_autotools+1))
- else
- if [ $is_manual_target -eq 1 ]; then
- echo "<li>convert to generic target</li>"
- convert_to_generic_target=$((convert_to_generic_target+1))
- fi
- if [ $is_manual_host -eq 1 ]; then
- echo "<li>convert to generic host</li>"
- convert_to_generic_host=$((convert_to_generic_host+1))
- fi
- fi
- if [ $found -eq 0 ] ; then
- echo "<li>look manually</li>"
- fi
+ echo $tasks
echo "</ul>"
echo "</td>"
@@ -189,8 +220,12 @@ echo "<td>Packages to convert to generic host</td>"
echo "<td>$convert_to_generic_host</td>"
echo "</tr>"
echo "<tr>"
-echo "<td>Packages to convert to autotools</td>"
-echo "<td>$convert_to_autotools</td>"
+echo "<td>Packages to convert to target autotools</td>"
+echo "<td>$convert_to_target_autotools</td>"
+echo "</tr>"
+echo "<tr>"
+echo "<td>Packages to convert to host autotools</td>"
+echo "<td>$convert_to_host_autotools</td>"
echo "</tr>"
echo "<tr>"
echo "<td>TOTAL</td>"
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] Improvements to the package conversion status script
2010-07-26 13:15 ` [Buildroot] [PATCH 1/1] Improvements to the package conversion status script Thomas Petazzoni
@ 2010-07-26 20:49 ` Peter Korsgaard
2010-07-27 8:37 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2010-07-26 20:49 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
That's a pretty non-specific commit message, but ok - Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] Improvements to the package conversion status script
2010-07-26 20:49 ` Peter Korsgaard
@ 2010-07-27 8:37 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2010-07-27 8:37 UTC (permalink / raw)
To: buildroot
On Mon, 26 Jul 2010 22:49:23 +0200
Peter Korsgaard <jacmet@uclibc.org> wrote:
> That's a pretty non-specific commit message, but ok - Committed,
> thanks.
Right. You should have rejected the patch, my commit message was
indeed crappy.
For the record, the improvements are :
* Slightly improved heuristics so that packages converted to
GENTARGETS but calling a configure script aren't considered as part
of the packages that need conversion to AUTOTARGETS. It was
generating false positives.
* Slightly improved layout with nice green color for the correct
packages and red color for the packages that require some sort of
conversion effort.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-27 8:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 13:15 [Buildroot] [pull request] Pull request for branch pkg-script-fix Thomas Petazzoni
2010-07-26 13:15 ` [Buildroot] [PATCH 1/1] Improvements to the package conversion status script Thomas Petazzoni
2010-07-26 20:49 ` Peter Korsgaard
2010-07-27 8:37 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox