mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
Improvements to the package conversion status script
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
98d5a8bcd0
commit
f978f2249d
@ -36,6 +36,12 @@ td {
|
|||||||
td.centered {
|
td.centered {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
tr.wrong td {
|
||||||
|
background: #ff9a69;
|
||||||
|
}
|
||||||
|
tr.correct td {
|
||||||
|
background: #d2ffc4;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@ -78,12 +84,7 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
found=0
|
|
||||||
|
|
||||||
echo "<tr>"
|
|
||||||
echo "<td>$cnt</td>"
|
|
||||||
cnt=$((cnt+1))
|
cnt=$((cnt+1))
|
||||||
echo "<td>$i</td>"
|
|
||||||
|
|
||||||
is_auto_host=0
|
is_auto_host=0
|
||||||
is_auto_target=0
|
is_auto_target=0
|
||||||
@ -92,51 +93,66 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
is_manual_target=0
|
is_manual_target=0
|
||||||
is_manual_host=0
|
is_manual_host=0
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
|
||||||
if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
|
if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
|
||||||
is_auto_host=1
|
is_auto_host=1
|
||||||
echo "<b>YES</b>"
|
|
||||||
else
|
|
||||||
echo "NO"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
|
||||||
if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
|
if grep -E "\(call AUTOTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
|
||||||
found=1
|
|
||||||
is_auto_target=1
|
is_auto_target=1
|
||||||
echo "<b>YES</b>"
|
|
||||||
else
|
|
||||||
echo "NO"
|
|
||||||
fi
|
fi
|
||||||
echo "</td>"
|
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
|
||||||
if grep -E "\(call GENTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
|
if grep -E "\(call GENTARGETS,[^,]*,[^,]*,host\)" $i > /dev/null ; then
|
||||||
found=1
|
|
||||||
is_pkg_host=1
|
is_pkg_host=1
|
||||||
echo "<b>YES</b>"
|
|
||||||
else
|
|
||||||
echo "NO"
|
|
||||||
fi
|
fi
|
||||||
echo "</td>"
|
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
|
||||||
if grep -E "\(call GENTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
|
if grep -E "\(call GENTARGETS,[^,]*,[^,]*(,target|)\)" $i > /dev/null ; then
|
||||||
found=1
|
|
||||||
is_pkg_target=1
|
is_pkg_target=1
|
||||||
echo "<b>YES</b>"
|
|
||||||
else
|
|
||||||
echo "NO"
|
|
||||||
fi
|
fi
|
||||||
echo "</td>"
|
|
||||||
|
|
||||||
pkg=$(basename $i)
|
pkg=$(basename $i)
|
||||||
pkg=${pkg%.mk}
|
pkg=${pkg%.mk}
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
|
||||||
if grep "^host-$pkg:" $i > /dev/null ; then
|
if grep "^host-$pkg:" $i > /dev/null ; then
|
||||||
found=1
|
|
||||||
is_manual_host=1
|
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>"
|
echo "<b>YES</b>"
|
||||||
else
|
else
|
||||||
echo "NO"
|
echo "NO"
|
||||||
@ -144,9 +160,39 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
echo "</td>"
|
echo "</td>"
|
||||||
|
|
||||||
echo "<td class=\"centered\">"
|
echo "<td class=\"centered\">"
|
||||||
if test $is_pkg_target -eq 0 -a $is_auto_target -eq 0 ; then
|
if [ $is_auto_target -eq 1 ] ; then
|
||||||
found=1
|
echo "<b>YES</b>"
|
||||||
is_manual_target=1
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_pkg_host -eq 1 ] ; then
|
||||||
|
echo "<b>YES</b>"
|
||||||
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_pkg_target -eq 1 ] ; then
|
||||||
|
echo "<b>YES</b>"
|
||||||
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_manual_host -eq 1 ] ; then
|
||||||
|
echo "<b>YES</b>"
|
||||||
|
else
|
||||||
|
echo "NO"
|
||||||
|
fi
|
||||||
|
echo "</td>"
|
||||||
|
|
||||||
|
echo "<td class=\"centered\">"
|
||||||
|
if [ $is_manual_target -eq 1 ] ; then
|
||||||
echo "<b>YES</b>"
|
echo "<b>YES</b>"
|
||||||
else
|
else
|
||||||
echo "NO"
|
echo "NO"
|
||||||
@ -155,22 +201,7 @@ for i in $(find package/ -name '*.mk') ; do
|
|||||||
|
|
||||||
echo "<td>"
|
echo "<td>"
|
||||||
echo "<ul>"
|
echo "<ul>"
|
||||||
if grep "/configure" $i > /dev/null ; then
|
echo $tasks
|
||||||
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 "</ul>"
|
echo "</ul>"
|
||||||
echo "</td>"
|
echo "</td>"
|
||||||
|
|
||||||
@ -189,8 +220,12 @@ echo "<td>Packages to convert to generic host</td>"
|
|||||||
echo "<td>$convert_to_generic_host</td>"
|
echo "<td>$convert_to_generic_host</td>"
|
||||||
echo "</tr>"
|
echo "</tr>"
|
||||||
echo "<tr>"
|
echo "<tr>"
|
||||||
echo "<td>Packages to convert to autotools</td>"
|
echo "<td>Packages to convert to target autotools</td>"
|
||||||
echo "<td>$convert_to_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 "<tr>"
|
echo "<tr>"
|
||||||
echo "<td>TOTAL</td>"
|
echo "<td>TOTAL</td>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user