-
Notifications
You must be signed in to change notification settings - Fork 17
/
mkdist.bat
48 lines (34 loc) · 1.04 KB
/
mkdist.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
@echo off
if exist kermit\k95\dist\k95.exe goto :mkdist
echo Running build...
call mk.bat
:mkdist
echo Collecting build artifcats...
if exist dist\NUL rmdir /S /Q dist
move kermit\k95\dist .\
if "%CKF_ZINC%" == "no" goto :nozinc
cd dist
move ..\kermit\dialer\dist\* .\
cd ..
:nozinc
:zipdist
REM make distribution zip if we can
if not exist %infozip_root%\zip.exe goto :nozip
cd dist
echo Making distribution archive K95PACK.ZIP
%infozip_root%\zip.exe -r -5 -v -o k95pack * -x setup.exe
if exist %infozip_root%\%CKB_TARGET_ARCH%\unzipsfx.exe goto :exedist
echo Could not find %CKB_TARGET_ARCH% version of Info-Zip unzipsfx.exe at %infozip_root%\%CKB_TARGET_ARCH%\unzipsfx.exe
echo Skipping creation of EXE distribution archive
cd ..
goto :zipdone
:exedist
REM This is for use with setup.exe, CD-ROM or Network install
copy /b %infozip_root%\%CKB_TARGET_ARCH%\unzipsfx.exe + k95pack.zip K2PACK.EXE
cd ..
goto :zipdone
:nozip
echo Could not find Info-Zip zip.exe at %infozip_root%\zip.exe
echo Skipping creation of distribution archive
:zipdone
echo Done.