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
|
|
|
|
acme src\grue.system.s
|
|
|
|
acme src\pitchdark.a
|
|
|
|
acme src\onbeyond\onbeyond.system.s
|
|
|
|
acme src\onbeyond\z3\z3.s
|
|
|
|
acme src\onbeyond\z4\z4.s
|
|
|
|
acme src\onbeyond\z5\z5.s
|
|
|
|
acme src\onbeyond\z5u\z5u.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\WEEGUI build\
|
|
|
|
1>nul copy /y res\_FileInformation.txt build\
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\GRUE.SYSTEM"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\PITCH.DARK"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\WEEGUI"
|
|
|
|
cadius ADDFILE "build\%DISK%" "/PITCH.DARK/" "build\ONBEYOND.SYSTEM"
|
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-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
|
|
|
|
python bin\textnormalize.py text\*
|
|
|
|
cd build
|
|
|
|
cadius ADDFOLDER "%DISK%" "/PITCH.DARK/TEXT" text
|
|
|
|
cd ..
|
|
|
|
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
|
|
|
|
1>nul xcopy /q /y /i res\artwork build\artwork
|
|
|
|
cd build
|
|
|
|
cadius ADDFOLDER "%DISK%" "/PITCH.DARK/ARTWORK" artwork
|
|
|
|
cd ..
|
|
|
|
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-02-21 23:48:03 +00:00
|
|
|
rem make script for Windows environments
|
|
|
|
rem a qkumba monstrosity from 2018-02-20
|
|
|
|
rem requires ACME, CADIUS, Python
|
|
|
|
rem https://sourceforge.net/projects/acme-crossass/
|
|
|
|
rem https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
|
|
|
|
rem https://github.com/mach-kernel/cadius
|
|
|
|
rem https://www.python.org/
|
|
|
|
rem requires ACME, CADIUS, Python to be in path
|