Re: DOS pathname separators?
Re: DOS pathname separators?
- Subject: Re: DOS pathname separators?
- From: Jerry <email@hidden>
- Date: Tue, 9 Aug 2005 18:10:53 +0100
On 9 Aug 2005, at 17:38, Brad Oliver wrote: I'm currently working on an Xcode version of a Mac port of a large (~1500 file) Win32 app. As you might guess, the code is not owned by me, so any changes I make remain specific to the Mac version and will never get propagated back into the Win32 codebase.
With that disclaimer out of the way, I'm in gcc hell right now. This codebase is totally saturated with #includes that use DOS-style path separators (i.e. "\" instead of "/"). I don't have an easy count, but so far I've changed hundreds of these today, and I'm only about 10% of the way through the code. I estimate that it'll probably take me at least the rest of the day and several hours tomorrow to just get past this particular syntax problem.
I'm hoping someone will tell me that there's a switch or setting I can use to enable this, before I go crazy or my hands fall off. :-) If not, let me know and I'll file a feature request.
How about something along the lines of:
find . -name \*.cpp | xargs perl -pi -w -e 's,\\,/,g if m/^#include/;'
I just typed this off the top of my head, but it should be close.
Jerry
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden