]>
git.saurik.com Git - wxWidgets.git/blob - docs/mac/M5replace.sh
2 #-----------------------------------------------------------------------------
3 #-- Name: docs/mac/M5replace.sh
4 #-- Purpose: Replace a string in CodeWarrior exported XML project files
5 #-- Author: Gilles Depeyrot
7 #-- Created: 08.01.2002
9 #-- Copyright: (c) 2001 Gilles Depeyrot
10 #-- Licence: wxWindows licence
11 #-----------------------------------------------------------------------------
13 echo -n "Replace '$1' with '$2' in xml project files? [y/N]"
16 if [ "$ans" != "y" ] ; then
20 echo "Searching for xml files..."
21 files
=`find ../.. -name "*.xml" -print`
25 cat $f | sed -e "s,$1,$2," > $f.new
26 if [ "`diff -q $f $f.new`" != "" ] ; then
28 echo "Replaced in $f..."