Add usual NOPAUSE option to pub-bins.bat files

This commit is contained in:
Geoff McLane 2015-06-09 15:27:26 +02:00
parent 7b7fbce9ab
commit 016f538d93
2 changed files with 13 additions and 6 deletions

View File

@ -4,9 +4,13 @@
@set TMPFIL=%TMPSRC%\version.txt
@if NOT EXIST %TMPFIL% goto NOFIL
@set /p TMPVER=<%TMPFIL%
@set DOPAUSE=pause
@echo Version %TMPVER%
if "%1x" == "NOPAUSEx" (
set DOPAUSE=echo No pause requested...
)
@set TMPBIN=F:\Projects\tidy-bins
@set TMPBINS=%TMPBIN%\binaries
@if NOT EXIST %TMPBINS%\nul goto NOBIN
@ -29,7 +33,7 @@
@echo %TMPFIL3%
@echo.
@echo *** CONTINUE?%
@pause
@%DOPAUSE%
@if NOT EXIST %TMPDD%\nul (
@md %TMPDD%
@ -79,11 +83,9 @@ copy %TMPSRC% %TMPDST%
@echo.
@goto :EOF
:NODST
@echo Error: Unable to create %TMPDD%
@goto END
:NOFIL1
@echo Can NOT locate %TMPFIL1%! *** FIX ME ***

View File

@ -3,6 +3,7 @@
@set TMPFIL=%TMPSRC%\version.txt
@if NOT EXIST %TMPFIL% goto NOFIL
@set /p TMPVER=<%TMPFIL%
@set DOPAUSE=pause
@echo Version %TMPVER%
@ -15,6 +16,10 @@
@echo This is a NEW installation in %TMPDD%
:GOTDST
@if "%1x" == "NOPAUSEx" (
@set DOPAUSE=echo No pause requested...
)
@set TMPFIL1=tidy5-%TMPVER%-win64.exe
@set TMPFIL2=tidy5-%TMPVER%-win64.msi
@set TMPFIL3=tidy5-%TMPVER%-win64.zip
@ -28,7 +33,7 @@
@echo %TMPFIL3%
@echo.
@echo *** CONTINUE?%
@pause
@%DOPAUSE%
@if NOT EXIST %TMPDD%\nul (
@md %TMPDD%