From 6cf7ddbcfadc05a66d1efa929d4665ba36abde75 Mon Sep 17 00:00:00 2001 From: baude Date: Fri, 23 Mar 2018 08:28:51 -0500 Subject: Add script to determine dependency sizes export GOPATH=/foo sh contrib/script/size.sh Signed-off-by: baude Closes: #535 Approved by: baude --- contrib/script/size.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 contrib/script/size.sh (limited to 'contrib/script') diff --git a/contrib/script/size.sh b/contrib/script/size.sh new file mode 100755 index 000000000..d40995391 --- /dev/null +++ b/contrib/script/size.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +: "${GOPATH?Need to set GOPATH}" + +cd cmd/podman/ && eval `go build -work -a 2>&1` && find $WORK -type f -name "*.a" | xargs -I{} du -hxs "{}" | sort -rh | sed -e s:${WORK}/::g -- cgit v1.2.3-54-g00ecf