E
Ed J
I'm porting a large Windows C++ application to Linux and ran into a big
hassle because of the case-sensitivity of filenames.
Does anyone want to take a shot at writing a Perl script to fix filenames
used in "#include" statements?
1. Search a directory tree for all *.h files, and remember their names.
2. Scan the same directory tree for all *.[CcPpPp] files, and replace the
filenames in their "#include" statements with the case-insensitive matching
name. Include files are distributed in several folders. When not in the
same folder as the including source file, it uses the ".." conventions for
relative path traversing.
3. Also change any backslashes in the filenames to forward slashes.
I know a pro could write such a script in two minutes. I use Perl once a
year. It would take me two hours at least!
Thanks bunches!!
Ed
hassle because of the case-sensitivity of filenames.
Does anyone want to take a shot at writing a Perl script to fix filenames
used in "#include" statements?
1. Search a directory tree for all *.h files, and remember their names.
2. Scan the same directory tree for all *.[CcPpPp] files, and replace the
filenames in their "#include" statements with the case-insensitive matching
name. Include files are distributed in several folders. When not in the
same folder as the including source file, it uses the ".." conventions for
relative path traversing.
3. Also change any backslashes in the filenames to forward slashes.
I know a pro could write such a script in two minutes. I use Perl once a
year. It would take me two hours at least!
Thanks bunches!!
Ed