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