aboutsummaryrefslogtreecommitdiff
path: root/dependencies/analyses/go-archive-analysis.sh
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2019-07-08 12:36:40 +0200
committerValentin Rothberg <rothberg@redhat.com>2019-07-16 14:16:16 +0200
commit88058c3ce20bb88c2613b9b5ef9aa558bf8440b9 (patch)
treeb7871663aa05c9f3c0d352c50de1b042bfff30c5 /dependencies/analyses/go-archive-analysis.sh
parent65a600332d3fcdbd0c64d096c68678d25a705dac (diff)
downloadpodman-88058c3ce20bb88c2613b9b5ef9aa558bf8440b9.tar.gz
podman-88058c3ce20bb88c2613b9b5ef9aa558bf8440b9.tar.bz2
podman-88058c3ce20bb88c2613b9b5ef9aa558bf8440b9.zip
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>
Diffstat (limited to 'dependencies/analyses/go-archive-analysis.sh')
-rwxr-xr-xdependencies/analyses/go-archive-analysis.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dependencies/analyses/go-archive-analysis.sh b/dependencies/analyses/go-archive-analysis.sh
new file mode 100755
index 000000000..f10145dad
--- /dev/null
+++ b/dependencies/analyses/go-archive-analysis.sh
@@ -0,0 +1,12 @@
+#!/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