count installs

This commit is contained in:
Gwenhael Le Moine 2024-11-26 16:30:52 +01:00
parent cec983c550
commit 5ab78b2f04
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -29,17 +29,41 @@ fi
PKG_OK="| x " PKG_OK="| x "
PKG_KO="| " PKG_KO="| "
echo "| tibou | titplume | tibonom | gwenhael |" counter=0
echo "|----------+----------+----------+----------+-------" echo "| tibou | titplume | tibonom | gwenhael | NB |"
echo "|----------+----------+----------+----------+----+-----"
for cat in a ap d l lua n wayland xap y; do for cat in a ap d l lua n wayland xap y; do
cd $cat cd $cat
for p in $(ls -1); do for p in $(ls -1); do
echo -n $PKGs_tibou | grep -q " $(echo $p | tr -d /) " && echo -n "$PKG_OK" || echo -n "$PKG_KO" if echo -n $PKGs_tibou | grep -q " $(echo $p | tr -d /) "; then
echo -n $PKGs_titplume | grep -q " $(echo $p | tr -d /) " && echo -n "$PKG_OK" || echo -n "$PKG_KO" echo -n "$PKG_OK";
echo -n $PKGs_tibonom | grep -q " $(echo $p | tr -d /) " && echo -n "$PKG_OK" || echo -n "$PKG_KO" counter=$((counter + 1));
echo -n $PKGs_gwenhael | grep -q " $(echo $p | tr -d /) " && echo -n "$PKG_OK" || echo -n "$PKG_KO" else
echo -n "$PKG_KO";
fi
if echo -n $PKGs_titplume | grep -q " $(echo $p | tr -d /) "; then
echo -n "$PKG_OK";
counter=$((counter + 1));
else
echo -n "$PKG_KO";
fi
if echo -n $PKGs_tibonom | grep -q " $(echo $p | tr -d /) "; then
echo -n "$PKG_OK";
counter=$((counter + 1));
else
echo -n "$PKG_KO";
fi
if echo -n $PKGs_gwenhael | grep -q " $(echo $p | tr -d /) "; then
echo -n "$PKG_OK";
counter=$((counter + 1));
else
echo -n "$PKG_KO";
fi
echo -n "| $counter "
echo "| $cat/$p" echo "| $cat/$p"
counter=0
done | sort done | sort
cd .. cd ..
done done