summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-03-23 08:28:51 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-23 14:12:14 +0000
commit6cf7ddbcfadc05a66d1efa929d4665ba36abde75 (patch)
tree6a4567664eb686e8b2eaae9a8baa5f9f26f6a3d7
parentc55e371365ef219422da6cfe15e30d9a54d6aff3 (diff)
downloadpodman-6cf7ddbcfadc05a66d1efa929d4665ba36abde75.tar.gz
podman-6cf7ddbcfadc05a66d1efa929d4665ba36abde75.tar.bz2
podman-6cf7ddbcfadc05a66d1efa929d4665ba36abde75.zip
Add script to determine dependency sizes
export GOPATH=/foo sh contrib/script/size.sh Signed-off-by: baude <bbaude@redhat.com> Closes: #535 Approved by: baude
-rwxr-xr-xcontrib/script/size.sh5
1 files changed, 5 insertions, 0 deletions
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