Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMerge ineffective comparisons




Am 09.07.2006 um 22:35 schrieb Jeff Birac:

So how should I approach this to acquire effective file comparisons?

Possible shell script for C source files:

find /path/to/my/sources -type file -name \*.c | while read F; do
  cp -p "$F" "$F".tmp
  tr '\r' '\n' <"$F".tmp >"$F"
  rm "$F".tmp
done

... written in Mail, so please have a copy for desaster recovery available ...


Additionally, you might want to check Xcode's preferences. There's an option to check/switch line endings when opening files, IIRC. This might or might not be already sufficient.



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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >FileMerge ineffective comparisons (From: Jeff Birac <email@hidden>)
 >Re: FileMerge ineffective comparisons (From: Chris Espinosa <email@hidden>)
 >Re: FileMerge ineffective comparisons (From: Jeff Birac <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.