From 763b51ba5648abad01eb543bddfe7879a336a02b Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Fri, 7 Jun 2013 17:02:08 +0200 Subject: [PATCH] Turns out that there were 2 make_new_tool.sh. Obviously I had taken the wrong one for the last 2 tools I've done... --- tools/make_new_tool.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/make_new_tool.sh b/tools/make_new_tool.sh index 2e4c1b4..dc58c8c 100755 --- a/tools/make_new_tool.sh +++ b/tools/make_new_tool.sh @@ -4,4 +4,10 @@ cp clitkBinarizeImage.cxx clitk$1.cxx cp clitkBinarizeImageGenericFilter.h clitk$1GenericFilter.h cp clitkBinarizeImageGenericFilter.cxx clitk$1GenericFilter.cxx -sed -i "s/BinarizeImage/$1/g" clitk$1* +if test "$(uname)" = "Darwin" +then + sed -i "" "s/BinarizeImage/$1/g" clitk$1* +else + sed -i "s/BinarizeImage/$1/g" clitk$1* +fi + -- 2.47.1