]> Creatis software - creaToolsTools.git/commitdiff
#3053 creaToolsTools Bug New Normal - GeneratyBinTgz creatools_install thirdpary_in...
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 10 Jan 2017 10:30:25 +0000 (11:30 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Tue, 10 Jan 2017 10:30:25 +0000 (11:30 +0100)
Linux/scripts/CreaTools-GenerateBinTGZ.sh

index 0a96182d0daf1fd04b2b83fc7086ce90038bcfa7..af8b84b0c190e45f41d8c455dfa95a6dc7c42aa0 100644 (file)
   if [ -e $generationdir ]
   then
 
-         cd $generationdir
-         source creatools_install/share/creatools/Version.sh 
-         distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.$creatoolsMinorVersion.x/
-echo distanceAdress:
-echo $distanceAdress
+       echo generationdir:
+       echo $generationdir
+       cd $generationdir
+       mkdir GenerateBinTGZ
+    cd GenerateBinTGZ
 
-     fileTGZ=CreaTools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion-`getDistrib`-`getDistribVersion`.tgz
-         fileTGZstring=CreaTools-Bin-Release-\$creatoolsMajorVersion.\$creatoolsMinorVersion.\$creatoolsBuildVersion-\`getDistrib\`-\`getDistribVersion\`
+       ln -s $installPrefix creatools_install
+       ln -s $installPrefixThird thirdparty_install
+
+       source creatools_install/share/creatools/Version.sh 
+       distanceAdress=davila@tux.creatis.insa-lyon.fr:creatools/creaTools/v$creatoolsMajorVersion.$creatoolsMinorVersion.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/*
+
+      rm creatools_install
+      rm thirdparty_install
 
-     tar -cvzf $fileTGZ creatools_install thirdparty_install
          scp $fileTGZ $distanceAdress/$fileTGZ 
 
          filename_BinVersion=creatools-Linux-Bin-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh