source: MondoRescue/branches/3.2/mindi-busybox/scripts/find_stray_common_vars@ 3232

Last change on this file since 3232 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:executable set to *
File size: 316 bytes
Line 
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 ! -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: /"
10done | grep -i ' c ' | sort -k2
Note: See TracBrowser for help on using the repository browser.