]> git.saurik.com Git - wxWidgets.git/blame - docs/mac/M5converteol.sh
More patches from FM to clean up after moving contribs. Also removes
[wxWidgets.git] / docs / mac / M5converteol.sh
CommitLineData
1e22dfaf
GD
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
13echo "Searching for xml files..."
14files=`find ../.. -name "*.xml" -print`
15
16for f in $files
17do
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
25done