]> Creatis software - clitk.git/commitdiff
Turns out that there were 2 make_new_tool.sh. Obviously I had taken the
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 7 Jun 2013 15:02:08 +0000 (17:02 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Fri, 7 Jun 2013 15:05:58 +0000 (17:05 +0200)
wrong one for the last 2 tools I've done...

tools/make_new_tool.sh

index 2e4c1b41f0e7fe2b6cdf7b34b61e9f4d1f5ed614..dc58c8cef615feadcb4250171dd74c5868d90a63 100755 (executable)
@@ -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
+