* Different systems implement strncpy and memmove in different ways.
[alpine.git] / packages / windows / binstaller.bat
blob8f5700a995b37bb28b99018e0dde1cbd109e8a4f
1 @echo OFF
2 if "%1"=="" goto blankplat
3 if "%2"=="" goto blankver
4 if "%1"=="wnt" goto goodbuild
5 if "%1"=="w2k" goto goodbuild
6 echo Unknown build platform: %1 %2
7 goto usage
8 :blankplat
9 echo Must specify build platform (wnt, w2k)!
10 goto usage
11 :blankver
12 echo Must specify build version (eg. 0.98)
13 :usage
14 echo usage: BINSTALLER plat ver
15 echo   where plat is wnt or w2k
16 echo   and ver is version (eg 0.98)
17 goto fini
20 :goodbuild
21 set plat=%1
22 set ver=%2
23 set tmpfile=iss.SetupVars.tmp
24 echo Building installer for platform %plat% for version %ver%
25 echo   Assuming existence of dist.%plat%.d!
26 echo SourceDir=dist.%plat%.d > %tmpfile%
27 goto %plat%
29 :wnt
30 echo AppVerName=Alpine %ver% >> %tmpfile%
31 echo OutputBaseFilename=setup_alpine_%ver% >> %tmpfile%
32 echo UninstallDisplayName=Alpine %ver% >> %tmpfile%
33 goto goodbuildcont
34 :w2k
35 echo AppVerName=Alpine %ver% (with Windows Kerberos) >> %tmpfile%
36 echo OutputBaseFilename=setup_alpine_%ver%_w2k >> %tmpfile%
37 echo UninstallDisplayName=Alpine %ver% (with Windows Kerberos) >> %tmpfile%
38 goto goodbuildcont
40 :goodbuildcont
41 iscc alpine.iss
42 del %tmpfile%
43 echo Done.
45 :fini