-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
194 lines (174 loc) · 7.54 KB
/
Copy pathbuild.bat
File metadata and controls
194 lines (174 loc) · 7.54 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
@echo off
rem download wget and unzip for win32 manually
rem https://kumisystems.dl.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe
rem https://eternallybored.org/misc/wget/1.19.4/32/wget.exe
rem set path=e:\win32\bin;%path%
rem or...
rem Install wget
rem choco install wget --no-progress
set wget=wget-win32.exe
rem Download Unzip
if not exist "%tmp%\unzip-win32.exe" (
%wget% ftp://ftp.osfree.org/upload/unzip/unzip-win32.exe -P "%tmp%" -c -t 5 -O "%tmp%\unzip-win32.exe"
if errorlevel 1 (
%wget% http://www2.cs.uidaho.edu/~jeffery/win32/unzip.exe -P "%tmp%" -c -t 5 -O "%tmp%\unzip-win32.exe"
if errorlevel 1 (
%wget% http://stahlworks.com/dev/unzip.exe -P "%tmp%" -c -t 5 -O "%tmp%\unzip-win32.exe"
if errorlevel 1 (
echo Error downloading unzip.exe
goto exit
)
)
)
)
rem Download Open Watcom 1.9
rem wget https://github.com/open-watcom/open-watcom-v2/releases/download/Current-build/open-watcom-2_0-c-win-x64.exe -P "c:/Documents and settings/Downloads"
rem wget ftp://ftp.osfree.org/upload/ow/ow-1.9.zip -P "c:/Documents and Settings/Downloads"
if not exist "%tmp%/ow-1.9.zip" (
%wget% ftp://ftp.osfree.org/upload/ow/ow-1.9.zip -P "%tmp%" -c
if errorlevel 1 (
echo Error downloading Open Watcom
goto exit
)
)
rem Install OpenWatcom
"%tmp%\unzip-win32" -o "%tmp%/ow-1.9.zip" -d .
rem Download Regina REXX
if not exist "%tmp%\Regina397w32.zip" (
%wget% ftp://ftp.osfree.org/upload/rexx/Regina397w32.zip -P "%tmp%" -c -t 5
if errorlevel 1 (
%wget% --no-check-certificate https://sourceforge.net/projects/regina-rexx/files/regina-rexx/3.9.7/Regina397w32.zip -P "%tmp%" -c -t 5
if errorlevel 1 (
echo Error downloading Regina REXX
goto exit
)
)
)
rem Install Regina REXX
rem if exist C:\REXX\uninstall.exe C:\REXX\uninstall /S
rem "%tmp%\Regina395w32.exe" /S /D=.\REXX
"%tmp%\unzip-win32" -o "%tmp%/Regina397w32.zip" -d .\REXX
rem Download FPC
rem wget --no-check-certificate https://downloads.sourceforge.net/project/freepascal/Win32/3.2.2/fpc-3.2.2.i386-win32.exe -P "c:/Documents and settings/Downloads"
rem wget --no-check-certificate https://downloads.sourceforge.net/project/freepascal/OS_2/3.2.2/os2322.zip -P "c:/Documents and settings/Downloads"
if not exist "%tmp%\fpc-3.2.2.i386-win32.exe" (
%wget% --no-check-certificate https://downloads.sourceforge.net/project/freepascal/Win32/3.2.2/fpc-3.2.2.i386-win32.exe -P "%tmp%" -c
if errorlevel 1 (
echo Error downloading Free Pascal for Win32
goto exit
)
)
if not exist "%tmp%\os2322.zip" (
%wget% --no-check-certificate https://downloads.sourceforge.net/project/freepascal/OS_2/3.2.2/os2322.zip -P "%tmp%" -c
if errorlevel 1 (
echo Error downloading Free Pascal for OS/2
goto exit
)
)
if not exist "%tmp%\fpc-cross.zip" (
%wget% --no-check-certificate ftp://ftp.osfree.org/upload/fpc/fpc-cross.zip -P "%tmp%" -c
if errorlevel 1 (
echo Error downloading Free Pascal for OS/2
goto exit
)
)
rem install fpc
"%tmp%\fpc-3.2.2.i386-win32.exe" /verysilent /dir="%CD%\fpc"
"%tmp%\unzip-win32" -o "%tmp%\os2322.zip" -d "%tmp%"
"%tmp%\unzip-win32" -o "%tmp%\baseos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\asldos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fcmkos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fpcmos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fpdcos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fpkgos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fpmcos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fprcos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fprsos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\gdbos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\h2paos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\js2pos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\makeos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\p2fmos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\p2jnos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\p2utos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\rmwos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\tplyos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ubz2os2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ucdos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uchmos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcjsos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclbos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcldos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcleos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclios2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcljos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclnos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclpos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclros2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclsos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcluos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufclxos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcpdos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcsdos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufcstos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufpgtos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufpmkos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufppkos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufsndos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ufvos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ugtk1os2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uhashos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uhermos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uideos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uimlbos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ulgdos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ulpngos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ultaros2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uos2os2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uosslos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\upjpos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\upzlos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uregos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urexxos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urtlcos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urtleos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urtlgos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urtloos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\urtluos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\usymbos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\utclos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\utilsos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\utpllos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uwidlos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\ux11os2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uzipos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\uzlibos2.zip" * -d.\fpc
"%tmp%\unzip-win32" -o "%tmp%\fpc-cross.zip" -d.\fpc\bin\i386-win32
rem Download dos2unix
if not exist "%tmp%\dos2unix-7.4.3-win32.zip" (
%wget% https://downloads.sourceforge.net/project/dos2unix/dos2unix/7.4.3/dos2unix-7.4.3-win32.zip -P "%tmp%" -c
if errorlevel 1 (
echo Error downloading dos2unix
goto exit
)
)
rem Install Dos2Unix
"%tmp%\unzip-win32" -j -o "%tmp%/dos2unix-7.4.3-win32.zip" bin/dos2unix.exe -d .\fpc\bin\i386-win32
if errorlevel 1 (
echo Error installing dos2unix
goto exit
)
rem Install Unix2Dos
"%tmp%\unzip-win32" -j -o "%tmp%/dos2unix-7.4.3-win32.zip" bin/unix2dos.exe -d .\fpc\bin\i386-win32
if errorlevel 1 (
echo Error installing unix2dos
goto exit
)
.\fpc\bin\i386-win32\zip -r -9 osFreeBE fpc REXX watcom
rem start /wait c:\fpc\3.2.2\unins000.exe /verysilent
exit
rem dir "c:/Documents and settings/Downloads"
rem dir c:\fpc /s
rem build
rem call build-git.cmd
:exit