]> Creatis software - clitk.git/blobdiff - make_new_tool.sh
Check if mask and input have the same spacing to compute SUVPeak
[clitk.git] / make_new_tool.sh
old mode 100644 (file)
new mode 100755 (executable)
index f2b5484..24f914e
@@ -10,7 +10,14 @@ find tools -name "clitkFooImage*" |
 while read i
 do
     cp $i ${i/FooImage/$1}
 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."
 done
 echo "Done!"
 echo "Don't forget to add your new tool to the various CMakeLists.txt files."