Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #===================================================================#
- # __ #
- # __ /\ \ #
- # ____/\_\ ___ \_\ \ __ ___ #
- # /',__\/\ \ /' _ `\ /'_` \ /'__`\/' _ `\ #
- # /\__, `\ \ \/\ \/\ \/\ \L\ \/\ __//\ \/\ \ #
- # \/\____/\ \_\ \_\ \_\ \___,_\ \____\ \_\ \_\ #
- # \/___/ \/_/\/_/\/_/\/__,_ /\/____/\/_/\/_/ #
- # >> Coded By Sinden @Obtect #
- # Shoutout to: RoBeRt, Proxy, Code #
- # #
- # [+] Site : Sinden.info #
- # [+] Support e-mail : Admin[at]Sinden.info #
- # #
- #===================================================================#
- ###
- # Title: Cross Compilers Installer
- # Date: 11/07/2015 Installer
- ###
- mips='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mips.tar.bz2'
- mipsel='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-mipsel.tar.bz2'
- sh4='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-sh4.tar.bz2'
- x86_64='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-x86_64.tar.bz2'
- armv6l='http://distro.ibiblio.org/slitaz/sources/packages/c/cross-compiler-armv6l.tar.bz2'
- i686='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-i686.tar.bz2'
- ppc='http://uclibc.org/downloads/binaries/0.9.30.1/cross-compiler-powerpc.tar.bz2'
- if [ -f /usr/bin/yum ]; then
- echo "Installing Packages..."
- yum install wget -y -q
- elif [ -f /usr/bin/apt-get ]; then
- echo "Installing Packages..."
- apt-get install wget -y -q
- fi
- if [ -d cross-compiler-mips ]
- then
- echo -e "\e[1;32mcross-compiler-mips is present"
- else
- wget $mips
- tar -xvjf cross-compiler-mips*
- fi
- if [ -d cross-compiler-mipsel ]
- then
- echo -e "\e[0;36mcross-compiler-mipsel is present"
- else
- wget $mipsel
- tar -xvjf cross-compiler-mipsel*
- fi
- if [ -d cross-compiler-sh4 ]
- then
- echo -e "\e[1;32mcross-compiler-sh4 is present"
- else
- wget $sh4
- tar -xvjf cross-compiler-sh4*
- fi
- if [ -d cross-compiler-x86_64 ]
- then
- echo -e "\e[0;36mcross-compiler-x86_64 is present"
- else
- wget $x86_64
- tar -xvjf cross-compiler-x86_64*
- fi
- if [ -d cross-compiler-armv6l ]
- then
- echo -e "\e[1;32mcross-compiler-armv6l is present"
- else
- wget $armv6l
- tar -xvjf cross-compiler-armv6l*
- fi
- if [ -d cross-compiler-i686 ]
- then
- echo -e "\e[0;36mcross-compiler-i686 is present"
- else
- wget $i686
- tar -xvjf cross-compiler-i686*
- if [ -d cross-compiler-powerpc ]
- then
- echo -e "\e[0;36mcross-compiler-powerpc is present"
- else
- wget $ppc
- fi
- rm -rf *.tar.bz2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement