Advertisement
SDN

[+] Cross Compiler Installer

SDN
Jul 12th, 2015
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.82 KB | None | 0 0
  1. #!/bin/bash
  2. #===================================================================#
  3. #                                  __                               #
  4. #                   __            /\ \                              #
  5. #              ____/\_\    ___    \_\ \     __    ___               #
  6. #             /',__\/\ \ /' _ `\  /'_` \  /'__`\/' _ `\             #
  7. #            /\__, `\ \ \/\ \/\ \/\ \L\ \/\  __//\ \/\ \            #
  8. #            \/\____/\ \_\ \_\ \_\ \___,_\ \____\ \_\ \_\           #
  9. #             \/___/  \/_/\/_/\/_/\/__,_ /\/____/\/_/\/_/           #
  10. #         >> Coded By Sinden @Obtect                        #
  11. #           Shoutout to: RoBeRt, Proxy, Code            #
  12. #                                                                   #
  13. #    [+] Site       : Sinden.info                               #
  14. #    [+] Support e-mail : Admin[at]Sinden.info                      #
  15. #                                                                   #
  16. #===================================================================#
  17.  
  18. ###
  19. # Title: Cross Compilers Installer
  20. # Date: 11/07/2015 Installer
  21. ###
  22.  
  23. mips='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2'
  24. mipsel='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2'
  25. sh4='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2'
  26. x86_64='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-x86_64.tar.bz2'
  27. armv6l='http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2'
  28. i686='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2'
  29. ppc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2'
  30.  
  31. if [ -f /usr/bin/yum ]; then
  32. echo "Installing Packages..."
  33. yum install wget -y -q
  34. elif [ -f /usr/bin/apt-get ]; then
  35. echo "Installing Packages..."
  36. apt-get install wget -y -q
  37. fi
  38.  
  39. if [ -d cross-compiler-mips ]
  40. then
  41. echo -e "\e[1;32mcross-compiler-mips is present"
  42. else
  43. wget $mips
  44. tar -xvjf cross-compiler-mips*
  45. fi
  46. if [ -d cross-compiler-mipsel ]
  47. then
  48. echo -e "\e[0;36mcross-compiler-mipsel is present"
  49. else
  50. wget $mipsel
  51. tar -xvjf cross-compiler-mipsel*
  52. fi
  53. if [ -d cross-compiler-sh4 ]
  54. then
  55. echo -e "\e[1;32mcross-compiler-sh4 is present"
  56. else
  57. wget $sh4
  58. tar -xvjf cross-compiler-sh4*
  59. fi
  60. if [ -d cross-compiler-x86_64 ]
  61. then
  62. echo -e "\e[0;36mcross-compiler-x86_64 is present"
  63. else
  64. wget $x86_64
  65. tar -xvjf cross-compiler-x86_64*
  66. fi
  67. if [ -d cross-compiler-armv6l ]
  68. then
  69. echo -e "\e[1;32mcross-compiler-armv6l is present"
  70. else
  71. wget $armv6l
  72. tar -xvjf cross-compiler-armv6l*
  73. fi
  74. if [ -d cross-compiler-i686 ]
  75. then
  76. echo -e "\e[0;36mcross-compiler-i686 is present"
  77. else
  78. wget $i686
  79. tar -xvjf cross-compiler-i686*
  80. if [ -d cross-compiler-powerpc ]
  81. then
  82. echo -e "\e[0;36mcross-compiler-powerpc is present"
  83. else
  84. wget $ppc
  85. fi
  86. rm -rf *.tar.bz2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement