From: Simon Rit Date: Fri, 7 Jun 2013 15:02:08 +0000 (+0200) Subject: Turns out that there were 2 make_new_tool.sh. Obviously I had taken the X-Git-Tag: v1.4.0~213 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=763b51ba5648abad01eb543bddfe7879a336a02b;p=clitk.git 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... --- 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 +