]> Creatis software - clitk.git/blob - make_new_tool.sh
Merge branch 'master' of git.creatis.insa-lyon.fr:clitk
[clitk.git] / make_new_tool.sh
1 #!/bin/bash
2
3 if [ $# -ne 1 ]
4 then
5   echo "Usage: `basename $0` ToolName"
6   exit 1
7 fi
8
9 find tools -name "clitkFooImage*" |
10 while read i
11 do
12     cp $i ${i/FooImage/$1}
13     sed -i "s/FooImage/$1/ig" ${i/FooImage/$1}
14 done
15 echo "Done!"
16 echo "Don't forget to add your new tool to the various CMakeLists.txt files."