logeuscan: add

This commit is contained in:
Maciej Barć 2020-09-12 05:04:13 +02:00
parent f98d308cc1
commit 3eb52f252e
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
1 changed files with 29 additions and 0 deletions

29
src/logeuscan Executable file
View File

@ -0,0 +1,29 @@
#!/bin/sh
# Scan with euscan + log
# Requires:
# - eix
# - euscan
trap 'exit 128' INT
export PATH
if [ -z "${1}" ]
then
echo "No overlay names given"
echo "Please give at least one overlay name as a commandline argument"
echo "Exiting"
exit 1
fi
for overlay in "${@}"
do
for ebuild in $(EIX_LIMIT=0 eix --only-names --in-overlay "${overlay}")
do
euscan --nocolor --quiet "${ebuild}" | tee -a "euscan-${overlay}.log"
done
echo ">>> Done scanning ${overlay}"
done