-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmake_dos.bat
62 lines (62 loc) · 1.87 KB
/
make_dos.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@echo off
rem -------------------------------------
set VERSION=2.3.57
rem -------------------------------------
if not exist *.exe goto :no_exe_file
del *.exe >nul
:no_exe_file
if not exist *.ppu goto :no_ppu_file
del *.ppu >nul
:no_ppu_file
if not exist *.o goto :no_o_file
del *.o >nul
:no_o_file
if not exist !log goto :no_log_file
del !log >nul
:no_log_file
echo.
echo ************************************
echo ** **
echo ** STEP 1/4 **
echo ** Validating version info **
echo ** **
echo ************************************
copy /y utils\val_dos.exe validate.exe >nul
validate.exe %VERSION%
del validate.exe >nul
echo.
echo ************************************
echo ** **
echo ** STEP 2/4 **
echo ** Compiling sources **
echo ** **
echo ************************************
ppc386 -O2 -OpPENTIUM2 -Ccpascal -Mtp -Rintel -Tgo32v2 adtrack2.pas >!log
if not exist adtrack2.exe goto :compile_error
if not exist *.ppu goto :no_ppu_file
del *.ppu >nul
:no_ppu_file
if not exist *.o goto :no_o_file
del *.o >nul
:no_o_file
if not exist !log goto :no_log_file
del !log >nul
:no_log_file
echo.
echo ************************************
echo ** **
echo ** STEP 3/4 **
echo ** UPX: Compressing EXE file **
echo ** **
echo ************************************
c:\utils\upx -9 adtrack2.exe >nul
echo.
echo ************************************
echo ** **
echo ** STEP 4/4 **
echo ** Executing program **
echo ** **
echo ************************************
echo.
adtrack2
:compile_error