473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

include path tool?

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
Nov 14 '05 #1
5 1792
In article <r6********************@bgtnsc04-news.ops.worldnet.att.net>,
"Mark T" <mt@nospam.com> wrote:
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
Nov 14 '05 #2
In article <r6********************@bgtnsc04-news.ops.worldnet.att.net>,
"Mark T" <mt@nospam.com> wrote:
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.
Nov 14 '05 #3
"Mark T" <mt@nospam.com> wrote in message news:<r6********************@bgtnsc04-news.ops.worldnet.att.net>...

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.
Nov 14 '05 #4
Mark T wrote:

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"

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 14 '05 #5
"David Phillip Oster" <os***@ieee.org> wrote in message
news:os*************************@news.sf.sbcglobal .net...
In article <r6********************@bgtnsc04-news.ops.worldnet.att.net>,
"Mark T" <mt@nospam.com> wrote:
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


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"
--
Mabden
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: steve | last post by:
I am quite frustrated with php’s include, as I have spent a ton of time on it already... anyone can tell me why it was designed like this (or something I don’t get)? The path in include is...
2
by: Marcus | last post by:
Hello, I am having problems with an include statement. I'm setting a session variable flag and then including a file, and in that include file I have a check at the top to make sure that the...
15
by: Steven T. Hatton | last post by:
I wrote this as part of a request for comments on a mailing list. I realized it summarizes much of what I've been saying about the use of #includes in C++. I'm not asking for the same kind of...
28
by: Ramesh | last post by:
Hi, I am currently maintaining a legacy code with a very very large code base. I am facing problems with C/C++ files having a lot of un-necessary #includes. On an average every C/C++ file has...
1
by: Alex | last post by:
Hello, in my company, we have a diagnostic tool for hardware. Depending on the hardware projcet, a different project configuration is needed. The configuration file is written in XML and...
5
by: David Mathog | last post by:
One thing that can make porting C code from one platform to another miserable is #include. In particular, the need to either place the path to an included file within the #include statement or to...
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
2
by: Nick Craig-Wood | last post by:
We are currently investigating whether to move the data files from our application into python for ease of maintenance. Each data item turns into a class definition with some class data. The...
0
by: Anastasios Hatzis | last post by:
I would like to let my setup script know if the user has provided a custom path for the data_files of my distribution, e.g. by using the --install-data option, so the setup can automagically change...
3
by: =?Utf-8?B?VG9kZCBEb2JtZXllcg==?= | last post by:
I am working on developing a program using Visual Studio 2003 but am having problems getting my program to find my GL.h and GLU.h, and I am guessing it will have the same problems trying to link to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.