2018-02-21 00:35:15 +00:00
|
|
|
@echo off
|
|
|
|
if "%1" equ "clean" (
|
2018-02-21 23:48:03 +00:00
|
|
|
:clean
|
2018-02-21 00:35:15 +00:00
|
|
|
echo y|1>nul 2>nul rd build /s
|
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
if "%1" equ "asm" (
|
2018-02-21 23:48:03 +00:00
|
|
|
:asm
|
|
|
|
2>nul md build
|
2018-04-17 19:53:12 +00:00
|
|
|
acme -r build\grue.system.lst src\loader\grue.system.s
|
2018-03-08 21:14:17 +00:00
|
|
|
acme -r build\pitchdark.lst src\pitchdark.a
|
|
|
|
acme -r build\onbeyond.system.lst src\onbeyond\onbeyond.system.s
|
2018-03-21 19:39:23 +00:00
|
|
|
acme -r build\z1.lst src\onbeyond\z1\z1.s
|
2018-03-21 22:25:48 +00:00
|
|
|
acme -r build\z2.lst src\onbeyond\z2\z2.s
|
2018-03-08 21:14:17 +00:00
|
|
|
acme -r build\z3.lst src\onbeyond\z3\z3.s
|
|
|
|
acme -r build\z4.lst src\onbeyond\z4\z4.s
|
|
|
|
acme -r build\z5.lst src\onbeyond\z5\z5.s
|
|
|
|
acme -r build\z5u.lst src\onbeyond\z5u\z5u.s
|
2018-04-13 03:58:12 +00:00
|
|
|
acme -r build\zinfo.system.lst src\zinfo\zinfo.system.s
|
|
|
|
acme -r build\zinfo1.lst src\zinfo\z1\z1.s
|
2018-04-13 05:15:14 +00:00
|
|
|
acme -r build\zinfo2.lst src\zinfo\z2\z2.s
|
2018-04-13 20:22:46 +00:00
|
|
|
acme -r build\zinfo3.lst src\zinfo\z3\z3.s
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
2018-02-21 23:48:03 +00:00
|
|
|
set DISK=Pitch Dark.2mg
|
2018-02-21 00:35:15 +00:00
|
|
|
|
|
|
|
if "%1" equ "dsk" (
|
2018-02-21 23:48:03 +00:00
|
|
|
:dsk
|
2018-02-21 00:35:15 +00:00
|
|
|
call :asm
|
2018-02-21 23:48:03 +00:00
|
|
|
1>nul copy /y res\"Pitch Dark.master games collection.do.not.edit.2mg" "build\%DISK%"
|
|
|
|
1>nul copy /y res\_FileInformation.txt build\
|
2018-04-19 01:03:06 +00:00
|
|
|
cscript /nologo bin\fixFileInformation.js build\_FileInformation.txt
|
2018-02-21 23:48:03 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\GRUE.SYSTEM"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\ONBEYOND.SYSTEM"
|
2018-04-13 03:58:12 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\ZINFO.SYSTEM"
|
2018-03-22 21:11:08 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\PITCH.DARK"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "res\PITCH.DARK.CONF"
|
2018-04-17 19:53:12 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "res\GAMES.CONF"
|
2018-03-02 01:02:14 +00:00
|
|
|
cadius CREATEFOLDER "build\%DISK%" "/PITCH.DARK/LIB/"
|
2018-03-21 19:39:23 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ1"
|
2018-03-21 22:25:48 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ2"
|
2018-02-22 20:48:51 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ3"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ4"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ5"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ONBEYONDZ5U"
|
2018-04-13 03:58:12 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ZINFO1"
|
2018-04-13 05:15:14 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ZINFO2"
|
2018-04-13 20:22:46 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/LIB/" "build\ZINFO3"
|
2018-02-21 23:48:03 +00:00
|
|
|
if not "%1" equ "" set DISK=
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
if "%1" equ "txt" (
|
|
|
|
call :dsk
|
2018-02-21 23:48:03 +00:00
|
|
|
:txt
|
|
|
|
2>nul md build\text
|
2018-04-19 01:03:06 +00:00
|
|
|
cscript /nologo bin/textnormalize.js res\text
|
2018-03-22 21:23:55 +00:00
|
|
|
cd build & cadius ADDFOLDER "%DISK%" "/PITCH.DARK/TEXT" text & cd ..
|
2018-02-21 23:48:03 +00:00
|
|
|
if not "%1" equ "" set DISK=
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
2018-02-21 23:48:03 +00:00
|
|
|
if "%1" equ "artwork" (
|
|
|
|
call :dsk
|
|
|
|
:artwork
|
2018-04-17 22:12:54 +00:00
|
|
|
cadius ADDFOLDER "build\%DISK%" "/PITCH.DARK/ARTWORK" "res\artwork"
|
2018-03-22 21:11:08 +00:00
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/ARTWORK/" "res\DHRSLIDE.SYSTEM"
|
2018-02-21 23:48:03 +00:00
|
|
|
if not "%1" equ "" set DISK=
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
2018-02-21 23:48:03 +00:00
|
|
|
)
|
2018-02-21 00:35:15 +00:00
|
|
|
|
2018-02-21 23:48:03 +00:00
|
|
|
if "%1" equ "all" (
|
|
|
|
call :clean
|
|
|
|
call :dsk
|
|
|
|
call :txt
|
|
|
|
call :artwork
|
|
|
|
set DISK=
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
2018-02-21 23:48:03 +00:00
|
|
|
)
|
2018-02-21 00:35:15 +00:00
|
|
|
|
2018-02-21 23:48:03 +00:00
|
|
|
echo usage: %0 clean / asm / dsk / txt / artwork / all
|
2018-02-21 00:35:15 +00:00
|
|
|
goto :EOF
|
|
|
|
|
2018-04-19 01:03:06 +00:00
|
|
|
make script for Windows environments
|
2018-03-02 01:02:14 +00:00
|
|
|
a qkumba monstrosity from 2018-03-01
|
|
|
|
requires ACME, CADIUS
|
|
|
|
https://sourceforge.net/projects/acme-crossass/
|
|
|
|
https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
|
|
https://github.com/mach-kernel/cadius
|
|
|
|
requires ACME, CADIUS to be in path
|