This script lists all the header files included directly or indirectly by a certain header file.
authoralpar
Wed, 09 Aug 2006 12:47:31 +0000
changeset 21699f71586a3f74
parent 2168 6474b8254f24
child 2170 42fffa713424
This script lists all the header files included directly or indirectly by a certain header file.
scripts/see-deps
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/see-deps	Wed Aug 09 12:47:31 2006 +0000
     1.3 @@ -0,0 +1,6 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +echo '#include<'$1'>' >seedeps_tmp.cc
     1.7 +gcc -MM -I. -I.. -I../.. $2 seedeps_tmp.cc|tr ':' ' '|tr '\' ' '|tr ' ' '\n'|
     1.8 +egrep -v '^$'|egrep -v '.o$'|egrep -v '.cc$'|sort
     1.9 +rm seedeps_tmp.cc
    1.10 \ No newline at end of file