-
Notifications
You must be signed in to change notification settings - Fork 17
/
mkdist-os2.bat
51 lines (39 loc) · 1.47 KB
/
mkdist-os2.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
@echo off
call clean-dist.bat
call mkos2.bat
:mkdist
echo Collecting build artifcats...
if exist dist\NUL rmdir /S /Q dist-os2
move kermit\k95\dist-os2 .\
if "%CKF_ZINC%" == "no" goto :nozinc
cd dist-os2
move ..\kermit\dialer\dist-os2\* .\
cd ..
goto :zipdist
echo ZINC is not available - distribution will not include the dialer!
:nozinc
:zipdist
REM make distribution zip
if not exist %infozip_root%\os2\unzipsfx.exe goto :nounzipsfx
if not exist %infozip_root%\zip.exe goto :nozip
cd dist-os2
echo Making full distribution archive K2PACK.EXE
REM This is for use with setup.exe, CD-ROM or Network install
%infozip_root%\zip.exe -r -5 -v -o k2pack * -x setup.exe
copy /b %infozip_root%\os2\unzipsfx.exe + k2pack.zip K2PACK.EXE
echo Making minimal distribution K2MINI.EXE
REM This is basically everything but the dialer. Its small enough to fit on a
REM single floppy disk alongisde setup.exe
%infozip_root%\zip.exe -r -5 -v -o k2pack-mini k2.* k2clip.exe cko32*.dll p*.dll pcfonts.dll rlogin.exe telnetpm*.exe textps.exe docs download eas icons keymaps phones printer public scripts tmp users
copy /b %infozip_root%\os2\unzipsfx.exe + k2pack-mini.zip K2MINI.EXE
cd ..
goto :zipdone
:nozip
echo Could not find Info-Zip zip.exe at %infozip_root%\zip.exe
echo Skipping creation of OS/2 distribution archive
goto :zipdone
:nounzipsfx
echo Could not find OS/2 version of Info-Zip unzipsfx.exe at %infozip_root%\os2\unzipsfx.exe
echo Skipping creation of OS/2 distribution archive
:zipdone
echo Done.