X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=make_new_tool.sh;h=24f914e2d3e02a4036ec84a216d2add38035313e;hb=HEAD;hp=950df79f9bf5e30ab61dcc014fea32c79c6b15ca;hpb=2dad4a649b5e61f450b47047f379fcc351b50215;p=clitk.git diff --git a/make_new_tool.sh b/make_new_tool.sh index 950df79..24f914e 100755 --- a/make_new_tool.sh +++ b/make_new_tool.sh @@ -6,11 +6,18 @@ then exit 1 fi -find filters tools -name "clitkFooImage*" | +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 + echo $(pwd) + echo sed -i "" "s/FooImage/$1/g" ${i/FooImage/$1} + sed -i "" "s/FooImage/$1/g" ${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."