Revision | 1ecdc9345cf917eb5bf56ee5483be6353336393f (tree) |
---|---|
Time | 2019-02-06 01:50:25 |
Author | <Kuddel@c0f5...> |
- Small enhancements and unifications in build_release.bat (trunk & 2016 branch).
@@ -17,7 +17,6 @@ | ||
17 | 17 | set BASE_DIR=..\.. |
18 | 18 | set OUT_DIR=_release |
19 | 19 | set VERSION=R3.5 |
20 | -set UTIL_DIR=%cd% | |
21 | 20 | |
22 | 21 | |
23 | 22 | :: Check if SDK and other needed resources are present |
@@ -159,12 +158,13 @@ | ||
159 | 158 | |
160 | 159 | |
161 | 160 | :: --- Packing |
162 | -cd %OUT_DIR% | |
161 | +pushd %OUT_DIR% | |
163 | 162 | %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%)+src.zip" * |
164 | 163 | |
165 | 164 | rmdir /S /Q "Orbitersdk\D3D9Client" |
166 | 165 | rmdir /S /Q "Utils" |
167 | 166 | %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%).zip" * |
167 | +popd | |
168 | 168 | |
169 | 169 | :: --- Publishing |
170 | 170 | ::ftp_helper.bat is supposed to contain folowing imformation if used |
@@ -175,7 +175,6 @@ | ||
175 | 175 | set /p GOBUILD=Publish a Build Y/N ? |
176 | 176 | if %GOBUILD%=="N" goto exit_ok |
177 | 177 | if %GOBUILD%=="n" goto exit_ok |
178 | -cd %UTIL_DIR% | |
179 | 178 | if not exist ftp_helper.bat goto exit_ok |
180 | 179 | call ftp_helper.bat |
181 | 180 | echo -------------------------- |
@@ -185,8 +184,7 @@ | ||
185 | 184 | echo get index.html html.tmp>>ftp.tmp |
186 | 185 | echo bye>>ftp.tmp |
187 | 186 | ftp -n -i -s:ftp.tmp %SERVER% |
188 | -del ftp.tmp | |
189 | -call ModHTML.exe "html.tmp" "%ZIP_NAME%(r%REVISION%).zip" "MAIN" | |
187 | +call ModHTML.exe html.tmp "%ZIP_NAME%(r%REVISION%).zip" MAIN | |
190 | 188 | echo -------------------------- |
191 | 189 | echo user %USER% %PASS%>ftp.tmp |
192 | 190 | echo cd %TGTPATH%>>ftp.tmp |