Only publish avail bins

This commit is contained in:
Geoff McLane 2015-10-01 15:38:48 +02:00
parent a35c4b98fe
commit 9127aa4fe2
2 changed files with 61 additions and 36 deletions

View file

@ -2,16 +2,12 @@
@set TMPWV=win32
@set TMPSRC=../..
@set TMPNAME=tidy
@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...
)
@echo Version %TMPVER%
@set TMPBIN=F:\Projects\tidy-bins
@set TMPBINS=%TMPBIN%\binaries
@ -22,17 +18,30 @@ if "%1x" == "NOPAUSEx" (
@echo This is a NEW installation in %TMPDD%
:GOTDST
@if "%1x" == "NOPAUSEx" (
@set DOPAUSE=echo No pause requested...
)
@echo Will publish...
@set TMPCNT=0
@set TMPFIL1=%TMPNAME%-%TMPVER%-%TMPWV%.exe
@set TMPFIL2=%TMPNAME%-%TMPVER%-%TMPWV%.msi
@set TMPFIL3=%TMPNAME%-%TMPVER%-%TMPWV%.zip
@if NOT EXIST %TMPFIL1% goto NOFIL1
@if NOT EXIST %TMPFIL2% goto NOFIL2
@if NOT EXIST %TMPFIL3% goto NOFIL3
@echo.
@echo Will publish...
@if EXIST %TMPFIL1% (
@echo %TMPFIL1%
@set /A TMPCNT+=1
)
@if EXIST %TMPFIL2% (
@echo %TMPFIL2%
@set /A TMPCNT+=1
)
@if EXIST %TMPFIL3% (
@echo %TMPFIL3%
@set /A TMPCNT+=1
)
@if "%TMPCNT%x" == "0x" goto NOPUB
@echo.
@echo Will publish %TMPCNT% files to %TMPDD%
@echo.
@echo *** CONTINUE?%
@%DOPAUSE%
@ -42,18 +51,25 @@ if "%1x" == "NOPAUSEx" (
@if NOT EXIST %TMPDD%\nul goto NODST
)
@if EXIST %TMPFIL1% (
@set TMPSRC=%TMPFIL1%
@set TMPDST=%TMPDD%\%TMPFIL1%
@call :CHKCOPY
)
@if EXIST %TMPFIL2% (
@set TMPSRC=%TMPFIL2%
@set TMPDST=%TMPDD%\%TMPFIL2%
@call :CHKCOPY
)
@if EXIST %TMPFIL3% (
@set TMPSRC=%TMPFIL3%
@set TMPDST=%TMPDD%\%TMPFIL3%
@call :CHKCOPY
)
@echo.
@echo Maybe time to run 'gentidyyml %TMPBIN%'
@echo If done all bins, WIN32, WIN64, linux, ... maybe time to run 'gentidyyml %TMPBIN%'
@echo.
@goto END
@ -85,26 +101,20 @@ copy %TMPSRC% %TMPDST%
@echo.
@goto :EOF
:NODST
@echo Error: Unable to create %TMPDD%
@goto END
:NOPUB
@echo Appears no files to PUBLISH!
:NOFIL1
@echo Can NOT locate %TMPFIL1%! *** FIX ME ***
@goto CHKBB
:NOFIL2
@echo Can NOT locate %TMPFIL2%! *** FIX ME ***
@goto CHKBB
:NOFIL3
@echo Can NOT locate %TMPFIL3%! *** FIX ME ***
@goto CHKBB
:CHKBB
@echo.
@echo Have you run build-bins.bat?
@echo.
@goto END

View file

@ -1,4 +1,5 @@
@setlocal
@set TMPWV=win64
@set TMPSRC=../..
@set TMPNAME=tidy
@set TMPFIL=%TMPSRC%\version.txt
@ -21,17 +22,26 @@
@set DOPAUSE=echo No pause requested...
)
@set TMPFIL1=%TMPNAME%-%TMPVER%-win64.exe
@set TMPFIL2=%TMPNAME%-%TMPVER%-win64.msi
@set TMPFIL3=%TMPNAME%-%TMPVER%-win64.zip
@if NOT EXIST %TMPFIL1% goto NOFIL1
@if NOT EXIST %TMPFIL2% goto NOFIL2
@if NOT EXIST %TMPFIL3% goto NOFIL3
@echo.
@echo Will publish...
@set TMPCNT=0
@set TMPFIL1=%TMPNAME%-%TMPVER%-%TMPWV%.exe
@set TMPFIL2=%TMPNAME%-%TMPVER%-%TMPWV%.msi
@set TMPFIL3=%TMPNAME%-%TMPVER%-%TMPWV%.zip
@if EXIST %TMPFIL1% (
@echo %TMPFIL1%
@set /A TMPCNT+=1
)
@if EXIST %TMPFIL2% (
@echo %TMPFIL2%
@set /A TMPCNT+=1
)
@if EXIST %TMPFIL3% (
@echo %TMPFIL3%
@set /A TMPCNT+=1
)
@if "%TMPCNT%x" == "0x" goto NOPUB
@echo.
@echo Will publish %TMPCNT% files to %TMPDD%
@echo.
@echo *** CONTINUE?%
@%DOPAUSE%
@ -41,18 +51,25 @@
@if NOT EXIST %TMPDD%\nul goto NODST
)
@if EXIST %TMPFIL1% (
@set TMPSRC=%TMPFIL1%
@set TMPDST=%TMPDD%\%TMPFIL1%
@call :CHKCOPY
)
@if EXIST %TMPFIL2% (
@set TMPSRC=%TMPFIL2%
@set TMPDST=%TMPDD%\%TMPFIL2%
@call :CHKCOPY
)
@if EXIST %TMPFIL3% (
@set TMPSRC=%TMPFIL3%
@set TMPDST=%TMPDD%\%TMPFIL3%
@call :CHKCOPY
)
@echo.
@echo Maybe time to run 'gentidyyml %TMPBIN%'
@echo If done all bins, WIN32, WIN64, linux, ... maybe time to run 'gentidyyml %TMPBIN%'
@echo.
@goto END
@ -88,16 +105,14 @@ copy %TMPSRC% %TMPDST%
:NODST
@echo Error: Unable to create %TMPDD%
@goto END
:NOPUB
@echo Appears no files to PUBLISH!
:NOFIL1
@echo Can NOT locate %TMPFIL1%! *** FIX ME ***
@goto END
:NOFIL2
@echo Can NOT locate %TMPFIL2%! *** FIX ME ***
@goto END
:NOFIL3
@echo Can NOT locate %TMPFIL3%! *** FIX ME ***
@goto END