while read i
do
cp $i ${i/FooImage/$1}
- sed -i "s/FooImage/$1/ig" ${i/FooImage/$1}
+ if test "$(uname)" = "Darwin"
+ then
+ sed -i "" "s/FooImage/$1/ig" ${i/FooImage/$1}
+ else
+ sed -i "s/FooImage/$1/ig" ${i/FooImage/$1}
+ fi
done
echo "Done!"
echo "Don't forget to add your new tool to the various CMakeLists.txt files."