]> Creatis software - creaToolsTools.git/commitdiff
#3444 creaToolsTools Feature New Normal - Install Generique Linux
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 19 Jun 2020 08:56:55 +0000 (10:56 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 19 Jun 2020 08:56:55 +0000 (10:56 +0200)
Linux/scripts/CreaTools-GenerateBinTGZ.sh
Linux/scripts/Install-Creatools-Bin.sh

index d59b1a55c3e034ec770155a3f2f39190f138cdab..1dc5f73967b764c37059a62941117030e6f08908 100644 (file)
        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
+
+# Fedora 31 
+       if [ `getDistribVersion` == 31 ] ; then 
+               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 .
+       fi
+
+# Fedora 28
+       if [ `getDistribVersion` == 28 ] ; then 
+               cp /usr/lib64/libwx*-3.0.so.0 .
+               cp /usr/lib64/libboost_*.so.1.66.0 .
+               cp /usr/lib64/libjpeg.so.62 .
+               cp /usr/lib64/libSDL2-2.0.so.0 .
+               cp /usr/lib64/libmspack.so.0 .
+       fi
 
        cd ../..
        fileTGZaux=$creatoolsTPLaux-`getDistrib`-`getDistribVersion`.tgz
        tar -cvzf $fileTGZaux $creatoolsTPLaux
        scp $fileTGZaux $distanceAdress/$fileTGZaux
 
-       
-       
 
+       fileTGZf28=CreaTools-Bin-Release-$creatoolsMajorVersion.$creatoolsMinorVersion.$creatoolsBuildVersion-Fedora-28.tgz
+       fileTGZauxf28=$creatoolsTPLaux-Fedora-28.tgz
 
+       
 #--------Script de Instalation :  creatools-Linux-Bin-x.x.x.sh   --------------------------------------------------------
 
 
      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 "if [ \"\$1\" = \"FinalUser\" ] ; then" >> $filename_BinVersion
+         echo "   \`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZf28" >> $filename_BinVersion 
+         echo "   tar -xvzf $fileTGZf28" >>  $filename_BinVersion
+         echo "   rm -f $fileTGZf28" >>  $filename_BinVersion
+         echo "   \`getDownloadCommand\` http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/v\$creatoolsMajorVersion.x.x/$fileTGZauxf28" >> $filename_BinVersion 
+         echo "   tar -xvzf $fileTGZauxf28" >>  $filename_BinVersion
+         echo "   rm -f $fileTGZauxf28" >>  $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
 
 #-----------------------------------------------------------------
 
         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
+##      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        
+ ##    scp Install-Creatools-Final_User-tmp.sh $distanceAdress/Install-Creatools-Final_User-$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 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"
+##      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 ""
index 3150f01531df7c1fe27406c271a3d36f4c61c4a8..b7fdcb8dff216e0e1ad55cd840083d712549bf3c 100755 (executable)
@@ -1,10 +1,25 @@
 
-CREATOOLSBINDIR=Creatools-Bin
-rm -rf $CREATOOLSBINDIR
-mkdir $CREATOOLSBINDIR
-cd $CREATOOLSBINDIR
-$downloadCommand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
-source creatools-Linux-Bin.sh
-cd ..
 
 
+
+if [ "$#" -ne 1 ]; then
+    echo "  Help:  Install-Creatools-Bin.sh  [pkg-dev|FinalUser]"
+       echo
+else
+       CREATOOLSBINDIR=Creatools-Bin
+       rm -rf $CREATOOLSBINDIR
+       mkdir $CREATOOLSBINDIR
+       cd $CREATOOLSBINDIR
+       $downloadCommand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
+       if [ "$1" = "pkg-dev" ]; then
+               echo "Installing creaTools pkg-dev ..."
+               source creatools-Linux-Bin.sh
+       elif  [ "$1" = "FinalUser" ]; then
+               echo "Installing creaTools FinalUser ..."
+               source creatools-Linux-Bin.sh FinalUser
+       else 
+               echo "Error.  Input parameter"
+       fi
+       cd ..
+fi
+