]> Creatis software - creaToolsTools.git/commitdiff
All Linux
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 15 Jun 2020 12:45:38 +0000 (14:45 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 15 Jun 2020 12:45:38 +0000 (14:45 +0200)
Linux/scripts/CreaTools-GenerateBinTGZ.sh

index 1c7be804f703f772d728f50717fad7dee363428f..d59b1a55c3e034ec770155a3f2f39190f138cdab 100644 (file)
@@ -37,6 +37,8 @@
   if [ -e $generationdir ]
   then
 
+#--------CreaTools-Bin  for Package developers---------------------------------------------------------
+
        echo generationdir:
        echo $generationdir
        cd $generationdir
        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/*
+       scp $fileTGZ $distanceAdress/$fileTGZ 
+
+
+#--------CreaTools-Final_User---------------------------------------------------------
+
+       creatoolsTPLaux=creatoolsTPLaux
+       rm -rf $creatoolsTPLaux
+       mkdir $creatoolsTPLaux
+       cd $creatoolsTPLaux
+       mkdir bin
+       mkdir lib64
+       mkdir share
+       mkdir share/creatools
+       echo "export PATH=\$PATH:\$1/bin" > share/creatools/creatools_TPLaux_config.sh
+       echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$1/lib64" >> share/creatools/creatools_TPLaux_config.sh
+       cp $scriptDir/TPLaux-bashrc.sh share/creatools/TPLaux-bashrc.sh
+       cd lib64
+       cp /usr/lib64/libwx*-3.0.so.0 .
+       cp /usr/lib64/libboost_*.so.1.69.0 .
+       cp /usr/lib64/libm.so.6 .
+       cp /usr/lib64/libstdc++.so.6 .
+       cp /usr/lib64/libSDL2-2.0.so.0 .
+       cp /usr/lib64/libmspack.so.0 .
+       cp /usr/lib64/libjpeg.so.62 .
+       cp /usr/lib64/libicudata.so.63 .
+       cp /usr/lib64/libicui18n.so.63 .
+       cp /usr/lib64/libicuuc.so.63 .
+       cp /usr/lib64/libc.so.6 libc.so.6-EED
+
+       cd ../..
+       fileTGZaux=$creatoolsTPLaux-`getDistrib`-`getDistribVersion`.tgz
+       rm -rf $fileTGZaux
+       tar -cvzf $fileTGZaux $creatoolsTPLaux
+       scp $fileTGZaux $distanceAdress/$fileTGZaux
 
-     tar -cvzf $fileTGZ creatools_install/* thirdparty_install/*
+       
+       
 
 
-         scp $fileTGZ $distanceAdress/$fileTGZ 
+#--------Script de Instalation :  creatools-Linux-Bin-x.x.x.sh   --------------------------------------------------------
 
-         filename_BinVersion=creatools-Linux-Bin-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh
+
+       filename_BinVersion=creatools-Linux-Bin-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh
 
          echo "##" > $filename_BinVersion
          echo "## Generated by CreaTools-GeneratedBinTGZ.sh" >> $filename_BinVersion
          cat creatools_install/share/creatools/Version.sh >> $filename_BinVersion
          cat $scriptDir/LocalFunctions.sh >> $filename_BinVersion
 
-         echo "\`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZstring.tgz" >> $filename_BinVersion 
-         echo "tar -xvzf $fileTGZstring.tgz" >>  $filename_BinVersion
-         echo "rm -f $fileTGZstring.tgz" >>  $filename_BinVersion
+     echo "ETC_BASHRC=\`getbashrc\`" >>  $filename_BinVersion
+
+
+         echo "if [ \"\$1\" = \"Final_User\" ] ; then" >> $filename_BinVersion
+         echo "   \`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZ" >> $filename_BinVersion 
+         echo "   tar -xvzf $fileTGZ" >>  $filename_BinVersion
+         echo "   rm -f $fileTGZ" >>  $filename_BinVersion
+         echo "   \`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZaux" >> $filename_BinVersion 
+         echo "   tar -xvzf $fileTGZaux" >>  $filename_BinVersion
+         echo "   rm -f $fileTGZaux" >>  $filename_BinVersion
+      echo "   installPrefixTPLaux=\$(pwd)/creatoolsTPLaux #You need this variable in the -barshrc script" >>  $filename_BinVersion
+      echo "   source creatoolsTPLaux/share/creatools/TPLaux-bashrc.sh"  >>  $filename_BinVersion
+
+         echo "else" >> $filename_BinVersion
+         echo "   \`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZstring.tgz" >> $filename_BinVersion 
+         echo "   tar -xvzf $fileTGZstring.tgz" >>  $filename_BinVersion
+         echo "   rm -f $fileTGZstring.tgz" >>  $filename_BinVersion
+      echo "   OperatingSystem=\`getDistrib\`  #You need this variable in the Base-Stuff script" >>  $filename_BinVersion
+      echo "   cd thirdparty_install/share/creatools/"  >>  $filename_BinVersion
+      echo "   source ThirdParty-install-Base-Stuff.sh \$OperatingSystem"  >>  $filename_BinVersion
+      echo "   cd ../../.."  >>  $filename_BinVersion
+         echo "fi" >> $filename_BinVersion
         
 
 #EED     echo "source creatools_install/share/creatools/LocalFunctions.sh"  >>  $filename_BinVersion
-     echo "ETC_BASHRC=\`getbashrc\`" >>  $filename_BinVersion
      echo "installPrefix=\$(pwd)/creatools_install #You need this variable in the -barshrc script" >>  $filename_BinVersion
      echo "installPrefixThird=\$(pwd)/thirdparty_install #You need this variable in the -barshrc script" >>  $filename_BinVersion
-     echo "OperatingSystem=\`getDistrib\`  #You need this variable in the Base-Stuff script" >>  $filename_BinVersion
-
-     echo "cd thirdparty_install/share/creatools/"  >>  $filename_BinVersion
-     echo "source ThirdParty-install-Base-Stuff.sh \$OperatingSystem"  >>  $filename_BinVersion
-     echo "cd ../../.."  >>  $filename_BinVersion
-
      echo "source thirdparty_install/share/creatools/ThirdParty-bashrc.sh"  >>  $filename_BinVersion
      echo "source creatools_install/share/creatools/CreaTools-bashrc.sh"  >>  $filename_BinVersion
-
      echo "echo $fileTGZstring >> Creatools-Bin-Version.txt " >>  $filename_BinVersion
 
      echo "echo  " >>  $filename_BinVersion
      echo "echo  " >>  $filename_BinVersion
      echo "read -p 'Press [Enter] key to continue...'" >>  $filename_BinVersion
      scp $filename_BinVersion $distanceAdress/. 
+     rm creatools_install
+     rm thirdparty_install
+
+
+#-----------------------------------------------------------------
 
-      rm creatools_install
-      rm thirdparty_install
+        cat $scriptDir/Install-Creatools-Bin.sh-downloadTool $scriptDir/Install-Creatools-Bin.sh > Install-Creatools-Bin-tmp.sh
+        cat $scriptDir/Install-Creatools-Bin.sh-downloadTool $scriptDir/Install-Creatools-Final_User.sh > Install-Creatools-Final_User-tmp.sh
 
+     scp Install-Creatools-Bin-tmp.sh $distanceAdress/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh      
+     scp Install-Creatools-Final_User-tmp.sh $distanceAdress/Install-Creatools-Final_User-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh        
 
-     cd $scriptsDir
-     scp $scriptDir/Install-Creatools-Bin.sh $distanceAdress/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh
-         
-         ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm Install-Creatools-Bin-Release.sh;  ln -s v4.x.x/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh  Install-Creatools-Bin-Release.sh"
+        ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm Install-Creatools-Bin-Release.sh;  ln -s v4.x.x/Install-Creatools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh  Install-Creatools-Bin-Release.sh"
+        ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm creatools-Linux-Bin.sh;  ln -s v4.x.x/$filename_BinVersion  creatools-Linux-Bin.sh"
 
-         ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm creatools-Linux-Bin.sh;  ln -s v4.x.x/$filename_BinVersion  creatools-Linux-Bin.sh"
+        ssh davila@tux.creatis.insa-lyon.fr "cd creatools/creaTools;rm Install-Creatools-Final_User.sh;  ln -s v4.x.x/Install-Creatools-Final_User-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion.sh  Install-Creatools-Final_User.sh"
 
 
      echo ""