1
0
mirror of https://github.com/UzixLS/pacemuzx.git synced 2025-07-19 07:11:20 +03:00

Converted Perl build helpers to Python

png2bin.pl is replaced by tile2sam.py (external)
remove_rom.pl is replaced by remove_rom.py
This commit is contained in:
Simon Owen
2018-01-17 20:17:58 +00:00
parent ec4006bbef
commit a067f335b5
5 changed files with 48 additions and 135 deletions

View File

@ -4,32 +4,32 @@ set NAME=pacemuzx
if "%1"=="clean" goto clean
png2bin.pl tiles.png 6
png2bin.pl sprites.png 12
tile2sam.py -q --mode 1 --tiles 76 sprites.png 12x12
tile2sam.py -q --mode 1 tiles.png 6x6
pasmo --tap %NAME%.asm %NAME%.o %NAME%.sym
if errorlevel 1 goto end
copy /b loader.tap+%NAME%.o %NAME%.tap
if "%1"=="dist" goto dist
if "%1"=="run" start %NAME%.tap
goto end
if not "%1"=="dist" goto end
:dist
if not exist dist mkdir dist
copy ReadMe.txt dist\
copy Makefile-dist dist\Makefile
copy make.bat-dist dist\make.bat
remove_rom.pl
move start.part dist\
move end.part dist\
remove_rom.py %NAME%.tap pacman.6e 16384 dist\start.part dist\end.part
goto end
:clean
if exist %NAME%.tap del %NAME%.tap %NAME%.sym %NAME%.o
if exist tiles.bin del tiles.bin sprites.bin
if exist dist\ del dist\ReadMe.txt dist\Makefile dist\make.bat dist\start.part dist\end.part
if exist dist\%NAME%.tap del dist\%NAME%.tap
if exist dist\ rmdir dist
del /q %NAME%.tap %NAME%.sym %NAME%.o 2>nul
del /q tiles.bin sprites.bin 2>nul
del /q dist\ReadMe.txt dist\Makefile dist\make.bat dist\start.part dist\end.part 2>nul
del /q dist\%NAME%.tap 2>nul
rmdir dist 2>nul
:end
endlocal