Remove not needed methods on the ps2-env.sh

This commit is contained in:
Francisco Javier Trujillo Mata 2018-12-31 19:06:25 +01:00
parent 577e418443
commit ab95112b92

View file

@ -4,7 +4,6 @@ display_usage() {
echo -e "It will install the toolchain in ~/tools\n"
echo -e "Arguments:\n"
echo -e "install:\n install or re(install) the toolchain"
echo -e "build:\n update the source tree and build everything"
echo -e "prepare-profile:\n update the bash profile with the needed variables"
echo -e "export-variables:\n Export in this bash session the needed variables"
}
@ -72,16 +71,6 @@ download-ps2-packer()
fi
}
donwload-libretro-super()
{
cd ~
if [ ! -d ~/libretro/ps2 ]; then
mkdir libretro
cd libretro
git clone https://github.com/libretro/libretro-super.git ps2
fi
}
install-ps2toolchain()
{
if [ ! -d ~/ps2tools/ps2toolchain ]; then
@ -126,17 +115,6 @@ install-ps2-packer()
make clean && make && make install
}
build-libretro-super()
{
if [ ! -d ~/libretro/ps2 ]; then
echo You need to donwload first the libretro-super
fi
cd ~/libretro/ps2
git fetch && git pull
./libretro-buildbot-recipe.sh recipes/playstation/ps2
}
#!/bin/bash
platform=ps2
@ -167,7 +145,6 @@ if [ "$1" = "install" ]; then
download-ps2sdk-ports
download-gskit
download-ps2-packer
donwload-libretro-super
#install everything
install-ps2toolchain
@ -180,15 +157,6 @@ if [ "$1" = "install" ]; then
fi;
if [ "$1" = "build" ]; then
if ! [ -x "$(command -v ee-gcc)" ]; then
echo Error: PS2 toolchain is not installed.
echo $platform environment not found, run with install again...
else
build-libretro-super
fi
fi;
if [ $# -le 0 ]; then
display_usage
fi