Commit MetaInfo

Revision1e422061b8e272a52d9dd6f8e57d0c0badafbf96 (tree)
Time2019-02-06 01:50:25
Author <Kuddel@c0f5...>

Log Message

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

Change Summary

Incremental Difference

diff -r 63b4e20f689a -r 1e422061b8e2 Utils/D3D9Client/build_release.bat
--- a/Utils/D3D9Client/build_release.bat Tue Feb 05 12:33:49 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=Beta28.6
20-set UTIL_DIR=%cd%
2120
2221
2322 :: Check if SDK and other needed resources are present
@@ -33,7 +32,6 @@
3332 )
3433
3534
36-
3735 :: Enhance Version by Orbiter Version
3836 echo ========================================================================
3937 echo Getting Version information
@@ -160,12 +158,13 @@
160158
161159
162160 :: --- Packing
163-cd %OUT_DIR%
161+pushd %OUT_DIR%
164162 %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%)+src.zip" *
165163
166164 rmdir /S /Q "Orbitersdk\D3D9Client"
167165 rmdir /S /Q "Utils"
168166 %ZIP_CMD% a -tzip -mx9 "..\%ZIP_NAME%(r%REVISION%).zip" *
167+popd
169168
170169 :: --- Publishing
171170 ::ftp_helper.bat is supposed to contain folowing imformation if used
@@ -176,7 +175,6 @@
176175 set /p GOBUILD=Publish a Build Y/N ?
177176 if %GOBUILD%=="N" goto exit_ok
178177 if %GOBUILD%=="n" goto exit_ok
179-cd %UTIL_DIR%
180178 if not exist ftp_helper.bat goto exit_ok
181179 call ftp_helper.bat
182180 echo --------------------------
@@ -186,14 +184,13 @@
186184 echo get index.html html.tmp>>ftp.tmp
187185 echo bye>>ftp.tmp
188186 ftp -n -i -s:ftp.tmp %SERVER%
189-del ftp.tmp
190-call ModHTML.exe "html.tmp" "%ZIP_NAME%(r%REVISION%).zip" "BETA"
187+call ModHTML.exe html.tmp "%ZIP_NAME%(r%REVISION%).zip" BETA
191188 echo --------------------------
192189 echo user %USER% %PASS%>ftp.tmp
193190 echo cd %TGTPATH%>>ftp.tmp
194191 echo send html.tmp index.html>>ftp.tmp
195192 echo binary>>ftp.tmp
196-echo send "%ZIP_NAME%(r%REVISION%).zip">>ftp.tmp
193+echo send %ZIP_NAME%(r%REVISION%).zip>>ftp.tmp
197194 echo bye>>ftp.tmp
198195 ftp -n -i -s:ftp.tmp %SERVER%
199196 del ftp.tmp
Show on old repository browser