wxWidgets/docs/osx/M5converteol.sh
Stefan Csomor 5aae8198c0 rename for docs as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-25 09:04:32 +00:00

26 lines
731 B
Bash
Executable File

#!/bin/sh
#-----------------------------------------------------------------------------
#-- Name: docs/mac/M5converteol.sh
#-- Purpose: Convert end-of-lines in CodeWarrior exported XML project files
#-- Author: Gilles Depeyrot
#-- Modified by:
#-- Created: 07.01.2002
#-- RCS-ID: $Id$
#-- Copyright: (c) 2001 Gilles Depeyrot
#-- Licence: wxWindows licence
#-----------------------------------------------------------------------------
echo "Searching for xml files..."
files=`find ../.. -name "*.xml" -print`
for f in $files
do
cat $f | tr '\r' '\n' > $f.new
if [ "`diff -q $f $f.new`" != "" ] ; then
mv $f.new $f
echo "Converted $f"
else
rm $f.new
fi
done