Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIX update developement environnemtn to latest versions

  • Loading branch information...
commit b8924d0ccd63328332b5f0eb8a5452ebdba73cce 1 parent a122a09
@PowerKiKi authored
Showing with 15 additions and 10 deletions.
  1. +15 −10 application/install_devtools.sh
View
25 application/install_devtools.sh 100644 → 100755
@@ -1,6 +1,11 @@
#!/bin/bash
PATH_POLUKILI=`dirname $(readlink -f $0)`
PATH_GRRLIB="$PATH_POLUKILI/../../grrlib"
+VERSION_DEVKITPPC=r22
+VERSION_LIBOGC=1.8.6
+VERSION_LIBFAT=1.0.8
+VERSION_EXAMPLES=20100930
+VERSION_MXML=2.6
# (inspired by "official instructions":http://devkitpro.org/wiki/Getting_Started/devkitPPC)
@@ -15,26 +20,26 @@ echo "export DEVKITPPC=$DEVKITPPC" >> ~/.bashrc
sudo mkdir -p $DEVKITPRO
sudo chmod 777 $DEVKITPRO
cd $DEVKITPRO/
-wget http://switch.dl.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_r22-i686-linux.tar.bz2
-tar -xvjf devkitPPC_r22-i686-linux.tar.bz2
+wget http://switch.dl.sourceforge.net/project/devkitpro/devkitPPC/devkitPPC_$VERSION_DEVKITPPC-i686-linux.tar.bz2 || { echo "cannot download devkitppc $VERSION_DEVKITPPC !" ; exit $? ; }
+tar -xvjf devkitPPC_$VERSION_DEVKITPPC-i686-linux.tar.bz2
mkdir libogc
cd libogc/
-wget http://switch.dl.sourceforge.net/project/devkitpro/libogc/libogc-1.8.5.tar.bz2
-tar -xvjf libogc-1.8.5.tar.bz2
-wget http://switch.dl.sourceforge.net/project/devkitpro/libfat/libfat-ogc-1.0.7.tar.bz2
-tar -xvjf libfat-ogc-1.0.7.tar.bz2
+wget http://switch.dl.sourceforge.net/project/devkitpro/libogc/libogc-$VERSION_LIBOGC.tar.bz2 || { echo "cannot download libogc $VERSION_LIBOGC !" ; exit $? ; }
+tar -xvjf libogc-$VERSION_LIBOGC.tar.bz2
+wget http://switch.dl.sourceforge.net/project/devkitpro/libfat/libfat-ogc-$VERSION_LIBFAT.tar.bz2 || { echo "cannot download libfat $VERSION_LIBFAT !" ; exit $? ; }
+tar -xvjf libfat-ogc-$VERSION_LIBFAT.tar.bz2
cd ..
mkdir -p examples/wii
cd examples/wii/
-wget http://switch.dl.sourceforge.net/project/devkitpro/examples/wii/wii-examples-20100930.tar.bz2
-tar -xvjf wii-examples-20100930.tar.bz2
+wget http://switch.dl.sourceforge.net/project/devkitpro/examples/wii/wii-examples-$VERSION_EXAMPLES.tar.bz2 || { echo "cannot download examples $VERSION_EXAMPLES !" ; exit $? ; }
+tar -xvjf wii-examples-$VERSION_EXAMPLES.tar.bz2
cd ..
# Install portlibs
mkdir -p $DEVKITPRO/portlibs/ppc
cd $DEVKITPRO/portlibs/ppc/
-wget http://switch.dl.sourceforge.net/project/devkitpro/portlibs/mxml-2.6-ppc.tar.bz2
-tar -xvjf mxml-2.6-ppc.tar.bz2
+wget http://switch.dl.sourceforge.net/project/devkitpro/portlibs/mxml-$VERSION_MXML-ppc.tar.bz2 || { echo "cannot download mxml $VERSION_MXML !" ; exit $? ; }
+tar -xvjf mxml-$VERSION_MXML-ppc.tar.bz2
# Install GRRLIB
mkdir -p $PATH_GRRLIB
Please sign in to comment.
Something went wrong with that request. Please try again.