root/middleware-offline/trunk/_src/eidmw/upload-win.bat @ 5

Revision 5, 3.4 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1echo %0 %1 %2
2
3if %1%=="" goto PARAM_ERR_1
4if %2%=="" goto PARAM_ERR_2
5
6set MSI_TYPE=%1
7set BUILD_NR=%2
8
9if %MSI_TYPE%==is     goto %MSI_TYPE%
10if %MSI_TYPE%==is-sdk goto %MSI_TYPE%
11
12if %MSI_TYPE%==is35     goto %MSI_TYPE%
13if %MSI_TYPE%==is35-pro goto %MSI_TYPE%
14if %MSI_TYPE%==is35-sdk goto %MSI_TYPE%
15
16if %MSI_TYPE%==msi35     goto %MSI_TYPE%
17if %MSI_TYPE%==msi35-64  goto %MSI_TYPE%
18if %MSI_TYPE%==msi35-pro goto %MSI_TYPE%
19if %MSI_TYPE%==msi35-sdk goto %MSI_TYPE%
20if %MSI_TYPE%==msi35-pro-sdk goto %MSI_TYPE%
21
22if %MSI_TYPE%==qi35     goto %MSI_TYPE%
23
24if %MSI_TYPE%==dt35     goto %MSI_TYPE%
25
26if %MSI_TYPE%==cleanup  goto %MSI_TYPE%
27
28goto PARAM_ERR_2
29
30:is
31set   SRC=%~dp0misc\setup_win\_output\runtime_single_exe\setup-pteid-runtime-3.0.exe
32set LOCAL=%~dp0misc\setup_win\_output\runtime_single_exe\setup-pteid-runtime-3.0-%BUILD_NR%.exe
33goto UPLOAD
34
35:is-sdk
36set   SRC=%~dp0misc\setup_win\_output\sdk_single_exe\setup-pteid-sdk-3.0.exe
37set LOCAL=%~dp0misc\setup_win\_output\sdk_single_exe\setup-pteid-sdk-3.0-%BUILD_NR%.exe
38goto UPLOAD
39
40:is35
41set   SRC=%~dp0misc\setup_win\_output\runtime_single_exe\setup-pteid-runtime-3.5.exe
42set LOCAL=%~dp0misc\setup_win\_output\runtime_single_exe\setup-pteid-runtime-3.5-%BUILD_NR%.exe
43goto UPLOAD
44
45:is35-pro
46set   SRC=%~dp0misc\setup_win\_output\runtime_pro_single_exe\setup-pteid-runtime-pro-3.5.exe
47set LOCAL=%~dp0misc\setup_win\_output\runtime_pro_single_exe\setup-pteid-runtime-pro-3.5-%BUILD_NR%.exe
48goto UPLOAD
49
50:is35-sdk
51set   SRC=%~dp0misc\setup_win\_output\sdk_single_exe\setup-pteid-sdk-3.5.exe
52set LOCAL=%~dp0misc\setup_win\_output\sdk_single_exe\setup-pteid-sdk-3.5-%BUILD_NR%.exe
53goto UPLOAD
54
55:msi35
56set   SRC=%~dp0misc\Wix_MW35\MW35Wix\bin\Release\PteidMW35.msi
57set LOCAL=%~dp0misc\setup_win\_output\msi_runtime\PteidMW35-%BUILD_NR%.msi
58goto UPLOAD
59
60:msi35-64
61set   SRC=%~dp0misc\Wix_MW35\MW35Wix\bin\Release\PteidMW35-64.msi
62set LOCAL=%~dp0misc\setup_win\_output\msi_runtime\PteidMW35-64-%BUILD_NR%.msi
63goto UPLOAD
64
65:msi35-pro
66set   SRC=%~dp0misc\Wix_MW35\MW35Wix\bin\Release\PteidMW35-Pro.msi
67set LOCAL=%~dp0misc\setup_win\_output\msi_runtime_pro\PteidMW35-Pro-%BUILD_NR%.msi
68goto UPLOAD
69
70:msi35-sdk
71set   SRC=%~dp0misc\Wix_MW35\MW35Wix-Sdk\bin\Release\PteidMW35-Sdk.msi
72set LOCAL=%~dp0misc\setup_win\_output\msi_sdk\PteidMW35-Sdk-%BUILD_NR%.msi
73goto UPLOAD
74
75:msi35-pro-sdk
76set   SRC=%~dp0misc\Wix_MW35\MW35Wix-Sdk\bin\Release\PteidMW35-Pro-Sdk.msi
77set LOCAL=%~dp0misc\setup_win\_output\msi_sdk_pro\PteidMW35-Pro-Sdk-%BUILD_NR%.msi
78goto UPLOAD
79
80:qi35
81set   SRC=%~dp0..\eID-Quickinstaller\release\eID-QuickInstaller.exe
82set LOCAL=%~dp0misc\setup_win\_output\qi_runtime\eID-QuickInstaller-build-%BUILD_NR%.exe
83goto UPLOAD
84
85:dt35
86set   SRC=%~dp0..\eDT\release\eDTGui.exe
87set LOCAL=%~dp0misc\setup_win\_output\eDT\eDTGui-build-%BUILD_NR%.exe
88goto UPLOAD
89
90:cleanup
91set   SRC=%~dp0misc\Wix_MW35\pteidcleanup\Release\pteidcleanup.exe
92set LOCAL=%~dp0misc\setup_win\_output\cleanup\pteidcleanup-%BUILD_NR%.exe
93goto UPLOAD
94
95:UPLOAD
96if not exist "%SRC%" goto FILE_NOT_EXIST
97copy /Y "%SRC%" "%LOCAL%"
98
99if not exist "%~dp0..\..\_src" goto END
100if not exist "%~dp0..\..\windows" goto END
101copy /Y "%LOCAL%" "%~dp0..\..\windows\"
102goto END
103
104
105:PARAM_ERR_2
106echo [ERROR] Error parameter 1 (MSI_TYPE)
107exit 1
108goto END
109
110:PARAM_ERR_1
111echo [ERROR] Error parameter 1 (VERSION)
112exit 1
113goto END
114
115:FILE_NOT_EXIST
116echo [ERROR] File does not exist: %SRC%
117exit 1
118goto END
119
120:END
Note: See TracBrowser for help on using the browser.