This commit is contained in:
commit
5c61b1aa93
19 changed files with 479 additions and 0 deletions
17
scripts/test.sh
Normal file
17
scripts/test.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
export WORLD=$HOME/.minetest/worlds/minenews-dev
|
||||
export LOGS=$(mktemp "$WORLD/debug.txt")
|
||||
|
||||
rm -rvf $WORLD
|
||||
mkdir -p $WORLD/worldmods
|
||||
cp -r scripts/world/* $WORLD/
|
||||
cp -r ./ $WORLD/worldmods/minenews
|
||||
|
||||
if [ x"$1" = x"pt" ]; then
|
||||
echo -e '\nlanguage = pt_BR' >> $WORLD/minetest.conf
|
||||
fi
|
||||
|
||||
exec minetest --verbose --config $WORLD/minetest.conf --world $WORLD --go
|
||||
Loading…
Add table
Add a link
Reference in a new issue