libretro-super/travis/build-wiiu.sh
2018-09-04 12:47:30 -04:00

27 lines
722 B
Bash
Executable file

#!/bin/bash
RECIPE=recipes/nintendo/wiiu
sudo mkdir -p /home/buildbot/tools
sudo chmod -R 777 /home/buildbot
cd /home/buildbot/tools
wget -O wiiu.tar.xz 'https://github.com/libretro/libretro-toolchains/blob/master/wiiu.tar.xz?raw=true'
tar Jkxf wiiu.tar.xz
cd ~/libretro-super
if [ "${TRAVIS_BUILD_DIR}" ]; then
CORE_DIRNAME=`grep ${CORE} ${RECIPE} | head -1 | awk '{print $2}'`
rm -fr ${CORE_DIRNAME}
mv ${TRAVIS_BUILD_DIR} ${CORE_DIRNAME}
fi
[ -z "${NAME:-}" ] && NAME="${CORE}"
# only build the one core specified in $CORE, use NOCLEAN so we don't reset the repo back to master/HEAD in case this is a PR
NOCLEAN=1 FORCE=YES SINGLE_CORE="${CORE}" CORE="${NAME}" ./libretro-buildbot-recipe.sh "${RECIPE}"