summaryrefslogtreecommitdiff
path: root/support/fixstrings.sh
blob: d7de8477f6dd46f49456a70553793ddd47bd63e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

echo Automatically fixing all .cpp, .h, .unit, and .doxy files in this tree.
echo Files are updated in place, you have them in version control, right?
echo If this isn\'t what you want, press ctrl+c, otherwise, enter.
echo
read
for i in $(find . -iname '*.cpp' -o -iname '*.h' -o -iname '*.unit' -o -iname '*.doxy'); do
	echo -n $i...
	sed -i $i \
		-e 's@"fstring.h@"bu/string.h@' \
		-e 's@"bu/fstring.h@"bu/string.h@' \
		-e 's@<fstring.h@<bu/string.h@' \
		-e 's@<bu/fstring.h@<bu/string.h@' \
		-e 's@FString@String@'
	echo done.
done