mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
Merge branch 'for-2011.05/pkg-stats-improvements' of git://git.busybox.net/~tpetazzoni/git/buildroot
This commit is contained in:
commit
0cab963761
@ -51,8 +51,10 @@ tr.correct td {
|
|||||||
<tr>
|
<tr>
|
||||||
<td rowspan=\"2\">Id</td>
|
<td rowspan=\"2\">Id</td>
|
||||||
<td rowspan=\"2\">Package</td>
|
<td rowspan=\"2\">Package</td>
|
||||||
|
<td>Patch count</td>
|
||||||
<td colspan=\"2\" class=\"centered\">AUTOTARGETS</td>
|
<td colspan=\"2\" class=\"centered\">AUTOTARGETS</td>
|
||||||
<td colspan=\"2\" class=\"centered\">GENTARGETS</td>
|
<td colspan=\"2\" class=\"centered\">GENTARGETS</td>
|
||||||
|
<td colspan=\"2\" class=\"centered\">CMAKETARGETS</td>
|
||||||
<td colspan=\"2\" class=\"centered\">manual</td>
|
<td colspan=\"2\" class=\"centered\">manual</td>
|
||||||
<td rowspan=\"2\" class=\"centered\">Actions</td>
|
<td rowspan=\"2\" class=\"centered\">Actions</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -63,22 +65,24 @@ tr.correct td {
|
|||||||
<td class=\"centered\">target</td>
|
<td class=\"centered\">target</td>
|
||||||
<td class=\"centered\">host</td>
|
<td class=\"centered\">host</td>
|
||||||
<td class=\"centered\">target</td>
|
<td class=\"centered\">target</td>
|
||||||
|
<td class=\"centered\">host</td>
|
||||||
|
<td class=\"centered\">target</td>
|
||||||
</tr>"
|
</tr>"
|
||||||
|
|
||||||
convert_to_generic_target=0
|
convert_to_generic_target=0
|
||||||
convert_to_generic_host=0
|
convert_to_generic_host=0
|
||||||
convert_to_autotools=0
|
convert_to_autotools=0
|
||||||
|
total_patch_count=0
|
||||||
cnt=1
|
cnt=1
|
||||||
for i in $(find package/ -name '*.mk') ; do
|
for i in $(find package/ -name '*.mk') ; do
|
||||||
|
|
||||||
if test $i = "package/mtd/mtd.mk" -o \
|
if test \
|
||||||
$i = "package/java/java.mk" -o \
|
$i = "package/java/java.mk" -o \
|
||||||
$i = "package/database/database.mk" -o \
|
|
||||||
$i = "package/editors/editors.mk" -o \
|
|
||||||
$i = "package/games/games.mk" -o \
|
$i = "package/games/games.mk" -o \
|
||||||
$i = "package/multimedia/multimedia.mk" -o \
|
$i = "package/multimedia/multimedia.mk" -o \
|
||||||
$i = "package/customize/customize.mk" -o \
|
$i = "package/customize/customize.mk" -o \
|
||||||
$i = "package/gnuconfig/gnuconfig.mk" -o \
|
$i = "package/gnuconfig/gnuconfig.mk" -o \
|
||||||
|
$i = "package/matchbox/matchbox.mk" -o \
|
||||||
$i = "package/x11r7/x11r7.mk" ; then
|
$i = "package/x11r7/x11r7.mk" ; then
|
||||||
echo "skipping $i" 1>&2
|
echo "skipping $i" 1>&2
|
||||||
continue
|
continue
|
||||||
@ -88,6 +92,8 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
|
|
||||||
is_auto_host=0
|
is_auto_host=0
|
||||||
is_auto_target=0
|
is_auto_target=0
|
||||||
|
is_cmake_host=0
|
||||||
|
is_cmake_target=0
|
||||||
is_pkg_target=0
|
is_pkg_target=0
|
||||||
is_pkg_host=0
|
is_pkg_host=0
|
||||||
is_manual_target=0
|
is_manual_target=0
|
||||||
@ -109,6 +115,14 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
is_pkg_target=1
|
is_pkg_target=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
|
||||||
|
is_cmake_host=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if grep -E "\(call CMAKETARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
|
||||||
|
is_cmake_target=1
|
||||||
|
fi
|
||||||
|
|
||||||
pkg=$(basename $i)
|
pkg=$(basename $i)
|
||||||
pkg=${pkg%.mk}
|
pkg=${pkg%.mk}
|
||||||
|
|
||||||
@ -116,7 +130,7 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
is_manual_host=1
|
is_manual_host=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then
|
if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 -a $is_cmake_target -eq 0; then
|
||||||
is_manual_target=1
|
is_manual_target=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -151,6 +165,22 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
echo "<td>$cnt</td>"
|
echo "<td>$cnt</td>"
|
||||||
echo "<td>$i</td>"
|
echo "<td>$i</td>"
|
||||||
|
|
||||||
|
package_dir=$(dirname $i)
|
||||||
|
patch_count=$(find ${package_dir} -name '*.patch' | wc -l)
|
||||||
|
total_patch_count=$(($total_patch_count+$patch_count))
|
||||||
|
|
||||||
|
if test $patch_count -lt 1 ; then
|
||||||
|
patch_count_color="#00ff00"
|
||||||
|
elif test $patch_count -lt 5 ; then
|
||||||
|
patch_count_color="#ffc600"
|
||||||
|
else
|
||||||
|
patch_count_color="#ff0000"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "<td class=\"centered\" style=\"color: $patch_count_color; font-weight: bold;\">"
|
||||||
|
echo $patch_count
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
echo "<td class=\"centered\">"
|
||||||
if [ $is_auto_host -eq 1 ] ; then
|
if [ $is_auto_host -eq 1 ] ; then
|
||||||
echo "<b>YES</b>"
|
echo "<b>YES</b>"
|
||||||
@ -183,6 +213,22 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
fi
|
fi
|
||||||
echo "</td>"
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_cmake_host -eq 1 ] ; then
|
||||||
|
echo "<b>YES</b>"
|
||||||
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_cmake_target -eq 1 ] ; then
|
||||||
|
echo "<b>YES</b>"
|
||||||
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
echo "<td class=\"centered\">"
|
||||||
if [ $is_manual_host -eq 1 ] ; then
|
if [ $is_manual_host -eq 1 ] ; then
|
||||||
echo "<b>YES</b>"
|
echo "<b>YES</b>"
|
||||||
@ -228,6 +274,10 @@ echo "<td>Packages to convert to host autotools</td>"
|
|||||||
echo "<td>$convert_to_host_autotools</td>"
|
echo "<td>$convert_to_host_autotools</td>"
|
||||||
echo "</tr>"
|
echo "</tr>"
|
||||||
echo "<tr>"
|
echo "<tr>"
|
||||||
|
echo "<td>Number of patches in all packages</td>"
|
||||||
|
echo "<td>$total_patch_count</td>"
|
||||||
|
echo "</tr>"
|
||||||
|
echo "<tr>"
|
||||||
echo "<td>TOTAL</td>"
|
echo "<td>TOTAL</td>"
|
||||||
echo "<td>$cnt</td>"
|
echo "<td>$cnt</td>"
|
||||||
echo "</tr>"
|
echo "</tr>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user