2015-08-17 01:14:55 +02:00
|
|
|
|
# passer sur branche master ou stable github
|
|
|
|
|
cd /home/quentinbd/mff/
|
|
|
|
|
#git checkout master
|
|
|
|
|
git checkout stable-0.4
|
|
|
|
|
|
|
|
|
|
# Suppression des anciens fichiers
|
|
|
|
|
rm -Rv /home/quentinbd/upgrade-mff/olds
|
|
|
|
|
rm -Rv /home/quentinbd/upgrade-mff/mff.tar.gz
|
|
|
|
|
|
|
|
|
|
# Sauvegarde des fichiers critiques
|
|
|
|
|
cp -Rv /home/quentinbd/mff/games/minetestforfun_game/ /home/quentinbd/upgrade-mff/olds/
|
|
|
|
|
cp -Rv /home/quentinbd/mff/mods/ /home/quentinbd/upgrade-mff/olds/
|
|
|
|
|
cp -Rv /home/quentinbd/mff/worlds/ /home/quentinbd/upgrade-mff/olds/
|
|
|
|
|
cp /home/quentinbd/mff/minetest.conf /home/quentinbd/upgrade-mff/olds/
|
|
|
|
|
|
|
|
|
|
# Sauvegarde et compression du dossier minetest (au cas ou)
|
|
|
|
|
cd /home/quentinbd/upgrade-mff/
|
|
|
|
|
tar -cf mff.tar.gz /home/quentinbd/mff/
|
|
|
|
|
|
|
|
|
|
# Suppression de minetest
|
|
|
|
|
rm -Rv /home/quentinbd/mff/
|
|
|
|
|
|
|
|
|
|
# Réinstallaton de minetest
|
|
|
|
|
cd /home/quentinbd/
|
|
|
|
|
#git clone https://github.com/minetest/minetest.git
|
2015-08-24 23:13:06 +02:00
|
|
|
|
# DEBUT - Utilisation de la dernière version 0.4 stable
|
|
|
|
|
git clone https://github.com/minetest/minetest.git
|
|
|
|
|
#unzip /home/quentinbd/minetest-stable-0.4.zip
|
|
|
|
|
#mv /home/quentinbd/minetest-stable-0.4/ /home/quentinbd/mff/
|
|
|
|
|
mv /home/quentinbd/minetest/ /home/quentinbd/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
|
# FIN - Utilisation de la version 0.4 stable
|
|
|
|
|
cd /home/quentinbd/mff/games/
|
|
|
|
|
git clone https://github.com/minetest/minetest_game.git
|
|
|
|
|
|
|
|
|
|
# Compilation
|
|
|
|
|
cd /home/quentinbd/mff/
|
|
|
|
|
# build sqlite3
|
|
|
|
|
#cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1
|
|
|
|
|
#make -j$(grep -c processor /proc/cpuinfo)
|
|
|
|
|
# build redis
|
|
|
|
|
#cmake . -DENABLE_REDIS=1 -DRUN_RUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1
|
|
|
|
|
#make -j$(grep -c processor /proc/cpuinfo)
|
|
|
|
|
# build redis + irc
|
2015-08-25 01:33:13 +02:00
|
|
|
|
cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1 -DENABLE_REDIS=1 -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LUAJIT=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr
|
2015-08-17 01:14:55 +02:00
|
|
|
|
make -j$(grep -c processor /proc/cpuinfo)
|
|
|
|
|
|
|
|
|
|
# Ajout des fichiers critiques au nouveau dossier minetest
|
|
|
|
|
cp -Rv /home/quentinbd/upgrade-mff/olds/minetestforfun_game/ /home/quentinbd/mff/games/
|
|
|
|
|
cp -Rv /home/quentinbd/upgrade-mff/olds/mods/ /home/quentinbd/mff/
|
|
|
|
|
cp -Rv /home/quentinbd/upgrade-mff/olds/worlds/ /home/quentinbd/mff/
|
|
|
|
|
cp /home/quentinbd/upgrade-mff/olds/minetest.conf /home/quentinbd/mff/
|
|
|
|
|
|
|
|
|
|
# Donne les droits à quentinbd
|
|
|
|
|
chown -R quentinbd:quentinbd /home/quentinbd/
|