alpar@2169: #!/bin/bash alpar@2169: alpar@2169: echo '#include<'$1'>' >seedeps_tmp.cc alpar@2169: gcc -MM -I. -I.. -I../.. $2 seedeps_tmp.cc|tr ':' ' '|tr '\' ' '|tr ' ' '\n'| alpar@2170: egrep -v '^$'|egrep -v '.o$'|egrep -v '.cc$'|grep -v '^'$1'$'|sort alpar@2169: rm seedeps_tmp.cc