Re: How are we supposed to paste text in XCode?
Re: How are we supposed to paste text in XCode?
- Subject: Re: How are we supposed to paste text in XCode?
- From: Markus Hitter <email@hidden>
- Date: Fri, 9 Jun 2006 14:11:07 +0200
Am 09.06.2006 um 05:08 schrieb Jim Wintermyre:
As mentioned above, this is a major hassle with the source control
system when the file to be checked in has the wrong line endings.
It's not noted when you check the file in (only when adding a new
file), and if you check in a file this way, it comes back all
screwed up as you might expect.
I'd expect my source control system to give me back exactly what I've
checked in.
Any idea what might be causing this?
What stops you from changing all source and header files from \r to
\n as part of the transition to Xcode? This will match Mac OS X's
native line endings as well as the line endings Xcode's maintainers
use (at least it matches what all the example code I've looked into
uses).
It can be as easy as
find /my/path/to/source -type file -name \*.h | while read F; do
mv "$F" tempfile
cat tempfile | tr '\r' '\n' >"$F"
done
rm -f tempfile
Repeat accordingly for other file suffixes.
Obviously, Mac line endings will die in the long term as there's no
longer a platform using \r as native line endings.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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