From 93e40565c28c000d898fb5f013ffefc4ea51d863 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Fri, 7 Jun 2013 17:08:08 +0200 Subject: [PATCH] Fixed script for my mac --- make_new_tool.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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." -- 2.45.1