Commit MetaInfo

修订版1ecdc9345cf917eb5bf56ee5483be6353336393f (tree)
时间2019-02-06 01:50:25
作者 <Kuddel@c0f5...>

Log Message

- Small enhancements and unifications in build_release.bat (trunk & 2016 branch).

更改概述

差异

diff -r 25d4a561eb12 -r 1ecdc9345cf9 Utils/D3D9Client/build_release.bat
--- a/Utils/D3D9Client/build_release.bat Tue Feb 05 10:47:05 2019 +0000
+++ b/Utils/D3D9Client/build_release.bat Tue Feb 05 16:50:25 2019 +0000
@@ -17,7 +17,6 @@
1717 set BASE_DIR=..\..
1818 set OUT_DIR=_release
1919 set VERSION=R3.5
20-set UTIL_DIR=%cd%
2120
2221
2322 :: Check if SDK and other needed resources are present
@@ -159,12 +158,13 @@
159158
160159
161160 :: --- Packing
162-cd %OUT_DIR%
161+pushd %OUT_DIR%
163162 %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%)+src.zip" *
164163
165164 rmdir /S /Q "Orbitersdk\D3D9Client"
166165 rmdir /S /Q "Utils"
167166 %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%).zip" *
167+popd
168168
169169 :: --- Publishing
170170 ::ftp_helper.bat is supposed to contain folowing imformation if used
@@ -175,7 +175,6 @@
175175 set /p GOBUILD=Publish a Build Y/N ?
176176 if %GOBUILD%=="N" goto exit_ok
177177 if %GOBUILD%=="n" goto exit_ok
178-cd %UTIL_DIR%
179178 if not exist ftp_helper.bat goto exit_ok
180179 call ftp_helper.bat
181180 echo --------------------------
@@ -185,8 +184,7 @@
185184 echo get index.html html.tmp>>ftp.tmp
186185 echo bye>>ftp.tmp
187186 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
190188 echo --------------------------
191189 echo user %USER% %PASS%>ftp.tmp
192190 echo cd %TGTPATH%>>ftp.tmp
Show on old repository browser