Adjust timetable GUI widget sizes and get rid of non-functional 'tiny' versions of...
[openttd-joker.git] / os / os2 / installer / make_installer.cmd
bloba15198b5f1ce85e526c65991adafcb79d8c3d761
1 @echo off
3 set OPENTTD_VERSION=1.9.0
4 set OPENSFX_VERSION=0.8.0
5 set NOSOUND_VERSION=0.8.0
6 set OPENGFX_VERSION=1.2.0
8 echo To make the installer, you must have the WarpIN compiler (wic) installed and in
9 echo your path, as well as wget and unzip. This file will download the various DLLs
10 echo to be distributed with the installer. If you do not want to continue, please
11 echo press CTRL-C now.
12 echo.
13 pause
15 cd ..\..\..\bundle
17 if not exist SDL12.dll goto getsdl
18 if not exist FSLib.dll goto getsdl
19 goto libc
21 :getsdl
23 wget http://www.os2site.com/sw/dev/sdl/sdl-1.2.10-bin-20080804.zip -O dl.zip
24 unzip -j dl.zip SDL/FSLib.dll SDL/SDL12.dll
25 del dl.zip
27 :libc
29 if exist libc063.dll goto gcc
31 wget ftp://ftp.netlabs.org/pub/gcc/libc-0.6.3-csd3.zip -O dl.zip
32 unzip -j dl.zip libc063.dll
33 del dl.zip
35 :gcc
37 if exist gcc442.dll goto tools
39 wget http://www.owenrudge.net/various/gcc442.zip -O dl.zip
40 unzip -j dl.zip gcc442.dll
41 del dl.zip
43 :tools
45 cd ..\os\os2\installer
46 if exist tools goto opengfx
48 mkdir tools
49 cd tools
51 wget http://download.smedley.info/wget-1.11.4-os2-20090315.zip -O dl.zip
52 unzip -j dl.zip wget/bin/wget.exe
53 del dl.zip
55 wget ftp://ftp.os4.su/moveton/p7zip-9.04-bin-os2.zip -O dl.zip
56 unzip -j dl.zip bin/7za.exe dll/ilibca.dll
57 del dl.zip
59 cd ..
61 :opengfx
63 if exist opengfx goto opensfx
65 mkdir opengfx
66 sed s/OPENGFX_VERSION/%OPENGFX_VERSION%/ < download_opengfx.cmd > opengfx\download_opengfx.cmd
67 copy remove_opengfx.cmd opengfx
69 :opensfx
70 if exist opensfx goto nosound
72 mkdir opensfx
73 sed s/OPENSFX_VERSION/%OPENSFX_VERSION%/ < download_opensfx.cmd > opensfx\download_opensfx.cmd
74 copy remove_opensfx.cmd opensfx
76 :nosound
78 mkdir nosound
79 sed s/NOSOUND_VERSION/%NOSOUND_VERSION%/ < download_nosound.cmd > nosound\download_nosound.cmd
80 copy remove_nosound.cmd nosound
82 :end
84 if exist openttd-%OPENTTD_VERSION%-os2.exe del openttd-%OPENTTD_VERSION%-os2.exe
85 wic -a openttd-%OPENTTD_VERSION%-os2.exe 1 -c../../../bundle -r * 2 -ctools -r * 3 -copengfx -r * 4 -copensfx -r * 5 -cnosound -r * -U -s openttd.wis