# HG changeset patch # User alpar # Date 1155127651 0 # Node ID 9f71586a3f746e0dfef46bb9dcfa26bfe056bc52 # Parent 6474b8254f243198d6d31863d8ab1cc84305d6a7 This script lists all the header files included directly or indirectly by a certain header file. diff -r 6474b8254f24 -r 9f71586a3f74 scripts/see-deps --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/see-deps Wed Aug 09 12:47:31 2006 +0000 @@ -0,0 +1,6 @@ +#!/bin/bash + +echo '#include<'$1'>' >seedeps_tmp.cc +gcc -MM -I. -I.. -I../.. $2 seedeps_tmp.cc|tr ':' ' '|tr '\' ' '|tr ' ' '\n'| +egrep -v '^$'|egrep -v '.o$'|egrep -v '.cc$'|sort +rm seedeps_tmp.cc \ No newline at end of file