]> git.saurik.com Git - wxWidgets.git/blob - docs/mac/M5converteol.sh
Compile fix (include order) for Unicode under Unix.
[wxWidgets.git] / docs / mac / M5converteol.sh
1 #!/bin/sh
2 #-----------------------------------------------------------------------------
3 #-- Name: docs/mac/M5converteol.sh
4 #-- Purpose: Convert end-of-lines in CodeWarrior exported XML project files
5 #-- Author: Gilles Depeyrot
6 #-- Modified by:
7 #-- Created: 07.01.2002
8 #-- RCS-ID: $Id$
9 #-- Copyright: (c) 2001 Gilles Depeyrot
10 #-- Licence: wxWindows licence
11 #-----------------------------------------------------------------------------
12
13 echo "Searching for xml files..."
14 files=`find ../.. -name "*.xml" -print`
15
16 for f in $files
17 do
18 cat $f | tr '\r' '\n' > $f.new
19 if [ "`diff -q $f $f.new`" != "" ] ; then
20 mv $f.new $f
21 echo "Converted $f"
22 else
23 rm $f.new
24 fi
25 done