aboutsummaryrefslogtreecommitdiff
path: root/scripts/find_stray_common_vars
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-21 10:54:59 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-21 10:54:59 +0000
commit18f2a6bc5efa762c6bdfe4199f2067e6c35fa111 (patch)
tree2f249cc6c8a1dbffd8e2772ca1be399c25de7ebd /scripts/find_stray_common_vars
parentf7d9e84bc50a9fb96ec4842ec0492b668d7f5802 (diff)
downloadbusybox-w32-18f2a6bc5efa762c6bdfe4199f2067e6c35fa111.tar.gz
busybox-w32-18f2a6bc5efa762c6bdfe4199f2067e6c35fa111.tar.bz2
busybox-w32-18f2a6bc5efa762c6bdfe4199f2067e6c35fa111.zip
s/communal/common/ part 2
Diffstat (limited to 'scripts/find_stray_common_vars')
-rwxr-xr-xscripts/find_stray_common_vars10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/find_stray_common_vars b/scripts/find_stray_common_vars
new file mode 100755
index 000000000..9f26bc7ac
--- /dev/null
+++ b/scripts/find_stray_common_vars
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3# Common variables are elusive, they don't show up in size output!
4# This script will show all commons in *.o, sorted by size
5
6find -name '*.o' \
7| while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
10done | grep -i ' c ' | sort -k2