2017-11-09 05:47:12 +00:00
0< /* :
@ echo off
if " %1 " equ " clean " (
echo y| 1> nul rd build /s
goto : EOF
)
2019-05-03 05:19:55 +00:00
set BUILDDISK = build\passport
2018-05-26 17:54:48 +00:00
set ACME = acme
set EXOMIZER = exomize
set CADIUS = cadius
2017-11-09 05:47:12 +00:00
2> nul md build
cd src\mods
2018-05-26 17:54:48 +00:00
%ACME% universalrwts.a
2017-11-09 05:47:12 +00:00
cd ..\..\build
2018-05-26 17:54:48 +00:00
%EXOMIZER% raw -q universalrwts.bin -o universalrwts.tmp
2017-11-09 05:47:12 +00:00
cscript /nologo //e:jscript %~f0 " b8 " " 00 "
1> nul copy /b tmp+universalrwts.tmp universalrwts.pak
cd ..\src\mods
2018-09-26 17:20:03 +00:00
%ACME% -r ..\..\build\t00only.lst t00only.a
2017-11-09 05:47:12 +00:00
cd ..\..\build
2018-05-26 17:54:48 +00:00
%EXOMIZER% raw -q t00only.bin -o t00only.tmp
2017-11-09 05:47:12 +00:00
cscript /nologo //e:jscript %~f0 " 20 " " 00 "
1> nul copy /b tmp+t00only.tmp t00only.pak
cd ..\src
2018-05-26 17:54:48 +00:00
for /f " tokens=* " %% q in ( '2^>^&1 %ACME% passport.a' ) do set _make = %% q
%ACME% -r ..\build\passport.lst -DRELBASE=$%_make:~-5,4% passport.a
2017-11-09 05:47:12 +00:00
set _make =
cd ..
1> nul copy res\work.po build\passport.po
2018-05-26 17:54:48 +00:00
1> nul copy res\_FileInformation.txt build\
%CADIUS% ADDFILE " build\passport.po " " /PASSPORT/ " " build\PASSPORT.SYSTEM "
2019-05-03 05:19:55 +00:00
cscript /nologo bin/po2do.js build\ build\
2> nul del " %BUILDDISK% .po "
2017-11-09 05:47:12 +00:00
goto : EOF
*/
new ActiveXObject(" scripting.filesystemobject " ).createtextfile(" tmp " ).write(String.fromCharCode(parseInt(WScript.arguments(0),16),String.fromCharCode(parseInt(WScript.arguments(1),16))))
/*
bat/jscript hybrid make script for Windows environments
a qkumba monstrosity from 2017-10-16
2018-05-26 17:54:48 +00:00
rem third-party tools required to build (must be in path)
rem https://sourceforge.net/projects/acme-crossass/
rem https://bitbucket.org/magli143/exomizer/wiki/Home
rem https://www.brutaldeluxe.fr/products/crossdevtools/cadius/
rem https://github.com/mach-kernel/cadius
2017-11-09 05:47:12 +00:00
*/