minetest-birthstones/update in C games Minetest ...

27 lines
1.1 KiB
Batchfile

IF NOT EXIST ".\textures" GOTO ENDNOSOURCE
SET MT_PATH=C:\games\Minetest
IF NOT EXIST "%MT_PATH%" GOTO ENDNOMINETEST
SET MT_GAMES_PATH=%MT_PATH%\games
SET MT_GAME_PATH=%MT_GAMES_PATH%\ENLIVEN
IF NOT EXIST "%MT_GAME_PATH%" GOTO ENDNOGAME
SET MODS_PATH=%MT_GAME_PATH%\mods
SET MOD_DEST_PATH=%MODS_PATH%\birthstones
IF NOT EXIST "%MOD_DEST_PATH%" md "%MOD_DEST_PATH%"
copy *.* "%MOD_DEST_PATH%\"
IF NOT EXIST "%MOD_DEST_PATH%\textures" md "%MOD_DEST_PATH%\textures"
copy .\textures\*.* "%MOD_DEST_PATH%\textures"
GOTO ENDSILENTLY
:ENDNOMINETEST:
echo "Minetest is not installed at %MT_PATH% -- extract minetest there first or edit this batch file in your favorite text editor and edit the value for MT_PATH.
pause
GOTO ENDSILENTLY
:ENDNOGAME
echo "Subgame %MT_ENLIVEN_PATH% is not installed -- extract that subgame there first or edit this batch file in your favorite text editor and edit the value for MT_GAME_PATH.
pause
GOTO ENDSILENTLY
:ENDNOSOURCE
echo "Missing source folder. You must extract all files and run from a drive letter, so that textures folder is in current working directory"
pause
:ENDSILENTLY