<commit_before># 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
# DEBUT - Utilisation de la version 0.4 stable
git clone https://github.com/minetest/minetest/archive/stable-0.4.zip
unzip /home/quentinbd/minetest-stable-0.4.zip
mv /home/quentinbd/minetest-stable-0.4/ /home/quentinbd/mff/
# 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<commit_msg>Fix some small things on the upgrade script<commit_after># 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
# 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/
# 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
{'fraction_non_alphanumeric': 0.125625, 'fraction_numerical': 0.011875, 'mean_word_length': 4.048895899053628, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4822263', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1317, 'n_words': 270}