From 88058c3ce20bb88c2613b9b5ef9aa558bf8440b9 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Mon, 8 Jul 2019 12:36:40 +0200 Subject: hack/analyses -> dependencies/analyses Move the analyses scripts to the dependencies directory to avoid scattering of the dependency management. Signed-off-by: Valentin Rothberg --- dependencies/analyses/go-archive-analysis.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 dependencies/analyses/go-archive-analysis.sh (limited to 'dependencies/analyses/go-archive-analysis.sh') 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 -- cgit v1.2.3-54-g00ecf