2015-08-17 01:14:55 +02:00
|
|
|
|
# passer sur branche master ou stable github
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cd /home/vincent/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
|
|
# Suppression des anciens fichiers
|
2017-03-12 15:39:36 +01:00
|
|
|
|
rm -Rv /home/vincent/mff/upgrade-mff/olds
|
|
|
|
|
rm -Rv /home/vincent/mff/upgrade-mff/mff.tar.gz
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
|
|
# Sauvegarde des fichiers critiques
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cp -Rv /home/vincent/jeux/mff/games/minetestforfun_game/ /home/vincent/mff/upgrade-mff/olds/
|
|
|
|
|
cp -Rv /home/vincent/jeux/mff/mods/ /home/vincent/mff/upgrade-mff/olds/
|
|
|
|
|
cp -Rv /home/vincent/jeux/mff/worlds/ /home/vincent/mff/upgrade-mff/olds/
|
|
|
|
|
cp /home/vincent/jeux/mff/minetest.conf /home/vincent/mff/upgrade-mff/olds/
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
|
|
# Sauvegarde et compression du dossier minetest (au cas ou)
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cd /home/vincent/mff/upgrade-mff/
|
|
|
|
|
tar -cf mff.tar.gz /home/vincent/jeux/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
|
|
# Suppression de minetest
|
2017-03-12 15:39:36 +01:00
|
|
|
|
rm -Rv /home/vincent/jeux/mff/
|
2015-08-17 01:14:55 +02:00
|
|
|
|
|
|
|
|
|
# Réinstallaton de minetest
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cd /home/vincent/jeux/
|
2015-08-24 23:13:06 +02:00
|
|
|
|
# DEBUT - Utilisation de la dernière version 0.4 stable
|
2015-09-02 23:03:50 +02:00
|
|
|
|
wget https://codeload.github.com/minetest/minetest/zip/stable-0.4
|
2017-03-12 15:39:36 +01:00
|
|
|
|
unzip /home/vincent/jeux/stable-0.4
|
|
|
|
|
mv /home/vincent/jeux/minetest-stable-0.4/ /home/vincent/jeux/mff/
|
|
|
|
|
rm -v /home/vincent/jeux/stable-0.4
|
2015-08-17 01:14:55 +02:00
|
|
|
|
# FIN - Utilisation de la version 0.4 stable
|
|
|
|
|
|
|
|
|
|
# Compilation
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cd /home/vincent/jeux/mff/
|
2015-09-02 23:03:50 +02:00
|
|
|
|
# Build REDIS + IRC
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1 -DENABLE_SOUND=0 -DENABLE_SYSTEM_GMP=1 -DIRRLICHT_SOURCE_DIR=/home/vincent/jeux/lib/irrlicht-1.8.4 -DENABLE_LEVELDB=0 -DENABLE_REDIS=1 -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LUAJIT=1 -DENABLE_CURL=1
|
2015-08-17 01:14:55 +02:00
|
|
|
|
make -j$(grep -c processor /proc/cpuinfo)
|
|
|
|
|
|
|
|
|
|
# Ajout des fichiers critiques au nouveau dossier minetest
|
2017-03-12 15:39:36 +01:00
|
|
|
|
cp -Rv /home/vincent/mff/upgrade-mff/olds/minetestforfun_game/ /home/vincent/jeux/mff/games/
|
|
|
|
|
cp -Rv /home/vincent/mff/upgrade-mff/olds/mods/ /home/vincent/jeux/mff/
|
|
|
|
|
cp -Rv /home/vincent/mff/upgrade-mff/olds/worlds/ /home/vincent/jeux/mff/
|
|
|
|
|
cp /home/vincent/mff/upgrade-mff/olds/minetest.conf /home/vincent/jeux/mff/
|
|
|
|
|
|
|
|
|
|
## Donne les droits à quentinbd
|
|
|
|
|
#chmod -R 755 /home/quentinbd/mff/
|
|
|
|
|
#chown -R quentinbd:quentinbd /home/quentinbd/
|