Ajoute génération automatique d'une carte avec minetestmapper

This commit is contained in:
2021-08-27 01:44:15 +02:00
parent 0d2289bf42
commit 5291494df1
3 changed files with 134 additions and 14 deletions

View File

@@ -265,6 +265,25 @@ post_install() {
fi
}
install_mtmapper() {
if [ -n $ssh ]; then
URL=$ssh\:minetest
else
URL="https://sys4.fr/gitea/minetest"
fi
if [ ! -d "$(pwd)/minetestmapper" ]; then
git clone --depth 1 $URL/minetestmapper.git
verif
fi
pushd "$(pwd)/minetestmapper"
git pull
cmake .
make -j$makeopt
popd
}
init() {
ver=$(strip $1)
@@ -282,6 +301,7 @@ init() {
install_minetest_game
install_mods
install_world
install_mtmapper
post_install
echo "L'installation est terminé. Bravo !"
else