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 --- hack/analyses/go-archive-analysis.sh | 12 ------------ hack/analyses/nm-symbols-analysis.sh | 15 --------------- 2 files changed, 27 deletions(-) delete mode 100755 hack/analyses/go-archive-analysis.sh delete mode 100755 hack/analyses/nm-symbols-analysis.sh (limited to 'hack') diff --git a/hack/analyses/go-archive-analysis.sh b/hack/analyses/go-archive-analysis.sh deleted file mode 100755 index f10145dad..000000000 --- a/hack/analyses/go-archive-analysis.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 diff --git a/hack/analyses/nm-symbols-analysis.sh b/hack/analyses/nm-symbols-analysis.sh deleted file mode 100755 index 924246715..000000000 --- a/hack/analyses/nm-symbols-analysis.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/bash - -if test "$#" -ne 1; then - echo "invalid arguments: usage: $0 path/to/binary" - exit 1 -fi - -DATA=$(go tool nm -size "$1" \ - | awk 'NF==4 {printf "%s\t%s\t%s\n", $2, $3, $4}' \ - | grep -v -P "\t_\t" \ - | grep -P "\tt\t" \ - | awk ' {printf "%s\t\t%s\n", $1, $3} ' \ - ) - -echo "$DATA" -- cgit v1.2.3-54-g00ecf