mapper.sh: clean up a bit, improve some old, very bad things

This commit is contained in:
tchncs 2017-01-04 23:17:40 +01:00
parent 728a54edaa
commit c475c12c7d

View File

@ -10,6 +10,11 @@
set -e
## --< Variables >--
#
# preventing ImageMagick caching errors
## must be the full path for some reason
## the folder is in the userdir to ensure having enough space.
export MAGICK_TMPDIR="/home/minetest/.im"
export MAGICK_MEMORY_LIMIT=4G
@ -26,17 +31,25 @@ klein="$cddir/daily_small.jpg"
tarfile="$cddir/daily.tar.bz2"
date=$(date "+%d-%m-%Y")
cd $cddir
#
#
## GO!
#
#
cp -r $main $cddir/world_$DATE.png
cd $mapperdir
./minetestmapper --geometry -10000:-12000+12000+12000 --bgcolor '#333333' --drawalpha --drawscale -i $sourcedir -o $main
cd $cddir
cp daily.png daily.jpg
mogrify -resize 1000 -format jpg -quality 100 daily.png
mv daily.jpg daily_small.jpg
./minetestmapper --geometry -10000:-12000+20000+20000 --bgcolor '#333333' --drawalpha --drawscale -i $sourcedir -o $main
tar -cvjf $tarfile daily.png
cd /tmp
mkdir -p minetestmapper
cd minetestmapper
cp $main daily_small.jpg
mogrify -resize 1000 -quality 100 daily_small.jpg
mv daily_small.jpg $klein
python $gdadir/gdal2tiles.py -l -p raster -z 0-10 -w none $main $tiles
# medium priority and a useless long task - until something more handy, just move it to the bottom
cd $cddir
tar -cvjf $tarfile $main