podman/dependencies/analyses/go-archive-analysis.sh
Valentin Rothberg 88058c3ce2 hack/analyses -> dependencies/analyses
Move the analyses scripts to the dependencies directory to avoid
scattering of the dependency management.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2019-07-16 14:16:16 +02:00

13 lines
298 B
Bash
Executable file

#!/usr/bin/bash
if [ -z "$WORK" ]
then
echo "WORK environment variable must be set"
exit 1
fi
grep --no-filename packagefile $WORK/**/importcfg \
| awk '{ split($2, data, "="); printf "%s ", data[1]; system("du -sh " data[2]) }' \
| awk '{ printf "%s %s\n", $2, $1 }' \
| sort -u | sort -rh