]> Creatis software - clitk.git/blobdiff - make_new_tool.sh
First version to submit jobs on a single multithread machine (if no qsub command...
[clitk.git] / make_new_tool.sh
old mode 100755 (executable)
new mode 100644 (file)
index 950df79..29ca0ee
@@ -6,11 +6,16 @@ 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
+        sed -i "" "s/FooImage/$1/ig" ${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."