include path tool?

M

Mark T

Is there a free utility out there (Win32 or Linux) that will:

recursively read thru your source code tree and output paths where it
found any .h or .hpp files

thanks
 
D

David Phillip Oster

"Mark T said:
Is there a free utility out there (Win32 or Linux) that will:

recursively read thru your source code tree and output paths where it
found any .h or .hpp files

to the comand line:

cd mySourceRootDirectory
find . -name "*.h" -o -name "*.hpp" -print
 
D

David Phillip Oster

"Mark T said:
Is there a free utility out there (Win32 or Linux) that will:

recursively read thru your source code tree and output paths where it
found any .h or .hpp files

or perhaps you mean ExtUtils::MakeMaker or autoconf or automake or ppm
or Ant or ...

which will analyze a source tree and create a correct makefile with all
the interdependencies correctly listed.
 
J

J. J. Farrell

Mark T said:
Is there a free utility out there (Win32 or Linux) that will:

recursively read thru your source code tree and output paths where it
found any .h or .hpp files

Off-topic for comp.lang.c, but gcc will give you a recursive list
of all included files if that's what you're looking for.
 
C

CBFalconer

Mark said:
Is there a free utility out there (Win32 or Linux) that will:
recursively read thru your source code tree and output paths
where it found any .h or .hpp files

Try "gcc -MM *.c"
 
M

Mabden

David Phillip Oster said:
to the comand line:

cd mySourceRootDirectory
find . -name "*.h" -o -name "*.hpp" -print

In Windows:

dir \*.h /s /b
dir \*.hpp /s /b

But you will get the entire filename, not just the directory.

Or the same command with a pipe through FIND, but you end up with the words
"Directory of" in front of the path.

dir \*.h /s /b | find "Directory of"
dir \*.hpp /s /b | find "Directory of"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top