busybox: update to 1.23.2
[tomato.git] / release / src / router / busybox / scripts / find_stray_common_vars
blob3a25d7a8d23433f2fb6f5f88123c9eeed8faaea8
1 #!/bin/sh
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
6 find ! -path './scripts/*' -a ! -name built-in.o -a -name '*.o' \
7 | while read name; do
8 b=`basename "$name"`
9 nm "$name" | sed "s/^/$b: /"
10 done | grep -i ' c ' | sort -k2