Last active
May 11, 2016 14:32
-
-
Save MrTarantula/b409c60f053bf710bc3d8e32144bd54e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BRANCH=retroplayer-17alpha1 | |
WORKSPACE=/data/kodibuild | |
STAGE=/data/kodigame | |
LOGFILE=/home/user/logretro.log | |
echo "$(date "+%m%d%Y %T") : Cleaning Up" >> $LOGFILE 2>&1 | |
sudo rm -rf $WORKSPACE >> $LOGFILE 2>&1 | |
sudo rm -rf $STAGE >> $LOGFILE 2>&1 | |
echo "Building $BRANCH" | |
echo "$(date "+%m%d%Y %T") : Cloning" >> $LOGFILE 2>&1 | |
git clone -b $BRANCH https://github.com/garbear/xbmc $WORKSPACE >> $LOGFILE 2>&1 | |
# echo "$(date "+%m%d%Y %T") : Building taglib" >> $LOGFILE 2>&1 | |
# cd $WORKSPACE/lib/taglib | |
# make -j2 >> $LOGFILE 2>&1 | |
# sudo make install >> $LOGFILE 2>&1 | |
echo "$(date "+%m%d%Y %T") : Building Retroplayer" >> $LOGFILE 2>&1 | |
cd $WORKSPACE | |
./bootstrap >> $LOGFILE 2>&1 | |
./configure --prefix=$STAGE >> $LOGFILE 2>&1 | |
make -j2 >> $LOGFILE 2>&1 | |
sudo make install >> $LOGFILE 2>&1 | |
echo "$(date "+%m%d%Y %T") : Building Joystick" >> $LOGFILE 2>&1 | |
mkdir $WORKSPACE/peripheral.joystick-build | |
cd $WORKSPACE/peripheral.joystick-build | |
cmake -DADDONS_TO_BUILD=peripheral.joystick \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/addons \ | |
-DPACKAGE_ZIP=1 \ | |
$WORKSPACE/project/cmake/addons >> $LOGFILE 2>&1 | |
make >> $LOGFILE 2>&1 | |
echo "$(date "+%m%d%Y %T") : Building Emulators" >> $LOGFILE 2>&1 | |
mkdir $WORKSPACE/game.addons-build | |
cd $WORKSPACE/game.addons-build | |
cmake -DADDONS_TO_BUILD=game.* \ | |
-DCMAKE_BUILD_TYPE=Debug \ | |
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/addons \ | |
-DPACKAGE_ZIP=1 \ | |
$WORKSPACE/project/cmake/addons >> $LOGFILE 2>&1 | |
make >> $LOGFILE 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment