]> Creatis software - creaToolsTools.git/commitdiff
TGZ version
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 1 Sep 2022 11:09:24 +0000 (13:09 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 1 Sep 2022 11:09:24 +0000 (13:09 +0200)
Linux/scripts/CreaTools-GenerateBinTGZ.sh

index 81975ca97dd6ae680722c1bfb427837105694db4..abd4742ad9e4862201641ba2ad52ec0060aef308 100644 (file)
 
 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 ""