From: Eduardo DAVILA Date: Thu, 1 Sep 2022 11:09:24 +0000 (+0200) Subject: TGZ version X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=22c614208c894957fe44bf84c01e94f6a8c106c6;p=creaToolsTools.git TGZ version --- diff --git a/Linux/scripts/CreaTools-GenerateBinTGZ.sh b/Linux/scripts/CreaTools-GenerateBinTGZ.sh index 81975ca..abd4742 100644 --- a/Linux/scripts/CreaTools-GenerateBinTGZ.sh +++ b/Linux/scripts/CreaTools-GenerateBinTGZ.sh @@ -56,16 +56,15 @@ 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--------------------------------------------------------- @@ -183,7 +182,7 @@ eval $cmd2 cd ../.. fileTGZaux=$creatoolsTPLaux-`getDistrib`-`getDistribVersion`.tgz rm -rf $fileTGZaux - tar -cvzf $fileTGZaux $creatoolsTPLaux +##EED tar -cvzf $fileTGZaux $creatoolsTPLaux scp $fileTGZaux $distanceAdress/$fileTGZaux @@ -286,21 +285,18 @@ eval $cmd2 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 ""