[Lemon-commits] [lemon_svn] alpar: r2884 - hugo/trunk/scripts

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 21:51:01 CET 2006


Author: alpar
Date: Wed Aug  9 14:47:31 2006
New Revision: 2884

Added:
   hugo/trunk/scripts/see-deps   (contents, props changed)

Log:
This script lists all the header files included directly or indirectly by a certain header file.

Added: hugo/trunk/scripts/see-deps
==============================================================================
--- (empty file)
+++ hugo/trunk/scripts/see-deps	Wed Aug  9 14:47:31 2006
@@ -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



More information about the Lemon-commits mailing list