From: Simon Rit Date: Fri, 7 Jun 2013 15:08:08 +0000 (+0200) Subject: Fixed script for my mac X-Git-Tag: v1.4.0~212 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=93e40565c28c000d898fb5f013ffefc4ea51d863;p=clitk.git Fixed script for my mac --- diff --git a/make_new_tool.sh b/make_new_tool.sh index f2b5484..29ca0ee 100644 --- a/make_new_tool.sh +++ b/make_new_tool.sh @@ -10,7 +10,12 @@ find tools -name "clitkFooImage*" | 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."