forked from MirrorRepos/RomWBW
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.9 KiB
82 lines
1.9 KiB
@echo off
|
|
|
|
setlocal
|
|
|
|
setlocal & cd ZCPR33 && call Build || exit /b 1 & endlocal
|
|
|
|
set PATH=%PATH%;..\..\Tools\zx;..\..\Tools\cpmtools;
|
|
|
|
set ZXBINDIR=../../tools/cpm/bin/
|
|
set ZXLIBDIR=../../tools/cpm/lib/
|
|
set ZXINCDIR=../../tools/cpm/include/
|
|
|
|
call :makebp 33t
|
|
|
|
call :makebp 33tbnk
|
|
call :makebp 33n
|
|
call :makebp 33nbnk
|
|
|
|
call :makebp 34t
|
|
call :makebp 34tbnk
|
|
call :makebp 34n
|
|
call :makebp 34nbnk
|
|
|
|
call :makebp 41tbnk
|
|
call :makebp 41nbnk
|
|
|
|
rem pause
|
|
|
|
cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:ws*.*
|
|
|
|
cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:*.img
|
|
cpmcp.exe -f wbw_hd0 ../../Binary/hd0.img *.img 0:
|
|
|
|
cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:*.rel
|
|
cpmcp.exe -f wbw_hd0 ../../Binary/hd0.img *.rel 0:
|
|
|
|
rem cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:*.dat
|
|
rem cpmcp.exe -f wbw_hd0 ../../Binary/hd0.img *.dat 0:
|
|
|
|
cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:*.zex
|
|
cpmcp.exe -f wbw_hd0 ../../Binary/hd0.img *.zex 0:
|
|
|
|
cpmrm.exe -f wbw_hd0 ../../Binary/hd0.img 0:myterm.z3t
|
|
cpmcp.exe -f wbw_hd0 ../../Binary/hd0.img myterm.z3t 0:myterm.z3t
|
|
|
|
goto :eof
|
|
|
|
:makebp
|
|
|
|
set VER=%1
|
|
echo.
|
|
echo Building BPBIOS Variant "%VER%"...
|
|
echo.
|
|
|
|
copy def-ww-z%VER%.lib def-ww.lib
|
|
rem if exist bpbio-ww.rel del bpbio-ww.rel
|
|
zx ZMAC -BPBIO-WW -/P
|
|
if exist bp%VER%.prn del bp%VER%.prn
|
|
ren bpbio-ww.prn bp%VER%.prn
|
|
|
|
rem pause
|
|
|
|
rem BPBUILD attempts to rename bpsys.img -> bpsys.bak
|
|
rem while is is still open. Real CP/M does not care,
|
|
rem but zx fails due to host OS. Below, a temp file
|
|
rem is used to avoid the problematic rename.
|
|
|
|
if exist bpsys.img del bpsys.img
|
|
if exist bpsys.tmp del bpsys.tmp
|
|
copy bp%VER%.dat bpsys.tmp
|
|
rem bpsys.tmp -> bpsys.img
|
|
zx bpbuild -bpsys.tmp <bpbld1.rsp
|
|
if exist bpsys.tmp del bpsys.tmp
|
|
copy bpsys.img bpsys.tmp
|
|
rem bpsys.tmp -> bpsys.img
|
|
zx bpbuild -bpsys.tmp <bpbld2.rsp
|
|
if exist bp%VER%.img del bp%VER%.img
|
|
if exist bpsys.img ren bpsys.img bp%VER%.img
|
|
|
|
rem pause
|
|
|
|
goto :eof
|