• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fixing line endings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fixing line endings


  • Subject: Re: Fixing line endings
  • From: Jack Repenning <email@hidden>
  • Date: Thu, 29 Mar 2007 14:42:50 -0700

On Mar 29, 2007, at 2:12 PM, Mark Wagner wrote:

I'm working on cleaning up the codebase that I'm working on.  It's a
rather incredible mess of line endings: CR, LF, CR/LF, and even LF/CR
in a few places, sometimes mixed within a single file.  Can anyone
suggest a program or script that would normalize things?  It would
need to be selective in which files it modifies, since the source code
directories also contain binary files and data files that require a
specific type of line ending.


What's your version control system? Subversion and ClearCase have good tools for this; CVS has ... OK ... tools for this. Many other VC systems also handle this (because they're usable from multiple platforms).

Fink offers "dos2unix" (which also does the unix2dos direction). It has no smarts about which files to convert, though; you'd have to script around that.



-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: 844.7461
aim: jackrepenning
skype: jrepenning




_______________________________________________ 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
References: 
 >Fixing line endings (From: "Mark Wagner" <email@hidden>)

  • Prev by Date: Fixing line endings
  • Next by Date: Xcode's documentation updates notifier stopped working
  • Previous by thread: Fixing line endings
  • Next by thread: Re: Fixing line endings
  • Index(es):
    • Date
    • Thread