summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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