echo
cmd='ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools; mkdir v5.x.x"'
-eval cmd2=$cmd
-echo $cmd2
-eval $cmd2
+echo $(eval "echo $cmd")
+$(eval $cmd)
source creatools_install/share/creatools/Version.sh
# distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.$creatoolsMinorVersion.x/
distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.x.x/
fileTGZ=CreaTools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion-`getDistrib`-`getDistribVersion`.tgz
fileTGZstring=CreaTools-Bin-Release-\$creatoolsMajorVersion.\$creatoolsMinorVersion.\$creatoolsBuildVersion-\`getDistrib\`-\`getDistribVersion\`
- tar -cvzf $fileTGZ creatools_install/* thirdparty_install/*
+##EED tar -cvzf $fileTGZ creatools_install/* thirdparty_install/*
scp $fileTGZ $distanceAdress/$fileTGZ
#--------CreaTools-Final_User---------------------------------------------------------
cd ../..
fileTGZaux=$creatoolsTPLaux-`getDistrib`-`getDistribVersion`.tgz
rm -rf $fileTGZaux
- tar -cvzf $fileTGZaux $creatoolsTPLaux
+##EED tar -cvzf $fileTGZaux $creatoolsTPLaux
scp $fileTGZaux $distanceAdress/$fileTGZaux
echo A
cmd='scp Install-Creatools-Bin-tmp.sh $distanceAdress/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh'
-eval cmd2=$cmd
-echo $cmd2
-eval $cmd2
+echo $(eval "echo $cmd")
+$(eval $cmd)
echo B
-cmd='ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm Install-Creatools-Bin-Release.sh; ln -s v5.x.x/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh Install-Creatools-Bin-Release.sh"'
-eval cmd2=$cmd
-echo $cmd2
-eval $cmd2
+cmd='ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm Install-Creatools-Bin-Release.sh; ln -s v$creatoolsMajorVersion.x.x/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh Install-Creatools-Bin-Release.sh"'
+echo $(eval "echo $cmd")
+$(eval $cmd)
echo C
-cmd='ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm creatools-Linux-Bin.sh; ln -s v5.x.x/$filename_BinVersion creatools-Linux-Bin.sh"'
-eval cmd2=$cmd
-echo $cmd2
-eval $cmd2
+cmd='ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm creatools-Linux-Bin.sh; ln -s v$creatoolsMajorVersion.x.x/$filename_BinVersion creatools-Linux-Bin.sh"'
+echo $(eval "echo $cmd")
+$(eval $cmd)
echo ""