"Fossies" - the Fresh Open Source Software Archive

Member "tidy-html5-5.8.0/build/win64/build-me.bat" (16 Jul 2021, 4930 Bytes) of package /linux/www/tidy-html5-5.8.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "build-me.bat": 5.7.28_vs_5.8.0.

    1 @setlocal
    2 
    3 @set TMPVER=1
    4 @set TMPPRJ=tidy
    5 @set TMPSRC=..\..
    6 @set TMPBGN=%TIME%
    7 @set TMPINS=D:\Projects\3rdParty.x64
    8 @set TMPLOG=bldlog-1.txt
    9 @set DOPAUSE=1
   10 @set TMPGEN=Visual Studio 16 2019
   11 @set TMPBR=next
   12 @set TMPINDBG=1
   13 
   14 @set TMPOPTS=-G "%TMPGEN%" -A x64
   15 @set TMPOPTS=%TMPOPTS% -DCMAKE_INSTALL_PREFIX=%TMPINS%
   16 @set TMPOPTS=%TMPOPTS% -DBUILD_SHARED_LIB=ON
   17 
   18 :RPT
   19 @if "%~1x" == "x" goto GOTCMD
   20 @if "%~1x" == "NOPAUSEx" (
   21     @set DOPAUSE=0
   22 ) else (
   23     @set TMPOPTS=%TMPOPTS% %1
   24 )
   25 @shift
   26 @goto RPT
   27 :GOTCMD
   28 
   29 @call chkmsvc %TMPPRJ%
   30 @if "%TMPBR%x" == "x" goto DNBR
   31 @call chkbranch %TMPBR%
   32 @if ERRORLEVEL 1 goto BAD_BR
   33 :DNBR
   34 
   35 @echo Build %TMPPRJ% 64-bits %DATE% %TIME%, in %CD%, to  %TMPLOG% > %TMPLOG%
   36 
   37 @if NOT EXIST %TMPSRC%\nul goto NOSRC
   38 
   39 @echo Build source %TMPSRC%... all output to build log %TMPLOG%
   40 @echo Build source %TMPSRC%... all output to build log %TMPLOG% >> %TMPLOG%
   41 
   42 @if EXIST build-cmake.bat (
   43 @call build-cmake >> %TMPLOG%
   44 )
   45 
   46 @if NOT EXIST %TMPSRC%\CMakeLists.txt goto NOCM
   47 
   48 @echo Doing: 'cmake -S %TMPSRC% %TMPOPTS%'
   49 @echo Doing: 'cmake -S %TMPSRC% %TMPOPTS%' >> %TMPLOG% 2>&1
   50 @cmake -S %TMPSRC% %TMPOPTS% >> %TMPLOG% 2>&1
   51 @if ERRORLEVEL 1 goto ERR1
   52 
   53 @echo Doing: 'cmake --build . --config Debug'
   54 @echo Doing: 'cmake --build . --config Debug'  >> %TMPLOG% 2>&1
   55 @cmake --build . --config Debug  >> %TMPLOG% 2>&1
   56 @if ERRORLEVEL 1 goto ERR2
   57 
   58 @echo Doing: 'cmake --build . --config Release'
   59 @echo Doing: 'cmake --build . --config Release'  >> %TMPLOG% 2>&1
   60 @cmake --build . --config Release  >> %TMPLOG% 2>&1
   61 @if ERRORLEVEL 1 goto ERR3
   62 
   63 @fa4 "***" %TMPLOG%
   64 @call elapsed %TMPBGN%
   65 @echo Appears a successful build... see %TMPLOG%
   66 @echo Note install location %TMPINS%
   67 @if "%TMPINDBG%x" == "1x" (
   68 @echo Will install Debug and Release
   69 ) else (
   70 @echo Will only intall Release
   71 )
   72 @echo.
   73 
   74 @REM ##############################################
   75 @REM Check if should continue with install
   76 @REM ##############################################
   77 @if "%DOPAUSE%x" == "0x" goto DOINST
   78 @choice /? >nul 2>&1
   79 @if ERRORLEVEL 1 goto NOCHOICE
   80 @choice /D N /T 10 /M "Pausing for 10 seconds. Def=N"
   81 @if ERRORLEVEL 2 goto GOTNO
   82 @goto DOINST
   83 :NOCHOICE
   84 @echo Appears OS does not have the 'choice' command!
   85 @ask *** CONTINUE with install? *** Only y continues
   86 @if ERRORLEVEL 2 goto NOASK
   87 @if ERRORLEVEL 1 goto DOINST
   88 @echo Skipping install to %TMPINST% at this time...
   89 @echo.
   90 @goto END
   91 :NOASK
   92 @echo 'ask' utility not found in path...
   93 @echo.
   94 @echo *** CONTINUE with install? *** Only Ctrl+c aborts...
   95 @echo.
   96 @pause
   97 
   98 :DOINST
   99 @echo Proceeding with INSTALL...
  100 @echo.
  101 @if NOT "%TMPINDBG%x" == "1x" goto DNDBGIN
  102 @if EXIST install_manifest.txt @del install_manifest.txt
  103 @echo Doing: 'cmake --build . --config Debug  --target INSTALL'
  104 @echo Doing: 'cmake --build . --config Debug  --target INSTALL' >> %TMPLOG% 2>&1
  105 @cmake --build . --config Debug  --target INSTALL >> %TMPLOG% 2>&1
  106 @if ERRORLEVEL 1 goto ERR4
  107 @if EXIST install_manifest.txt (
  108     @copy install_manifest.txt install_manifest_debug.txt >nul
  109     @call add2installs install_manifest.txt -o %TMPINS%\install_manifest.txt >> %TMPLOG%
  110 )
  111 :DNDBGIN
  112 
  113 @if EXIST install_manifest.txt @del install_manifest.txt
  114 @echo Doing: 'cmake --build . --config Release  --target INSTALL'
  115 @echo Doing: 'cmake --build . --config Release  --target INSTALL' >> %TMPLOG% 2>&1
  116 @cmake --build . --config Release  --target INSTALL >> %TMPLOG% 2>&1
  117 @if ERRORLEVEL 1 goto ERR5
  118 @if EXIST install_manifest.txt (
  119     @copy install_manifest.txt install_manifest_release.txt >nul
  120     @call add2installs install_manifest.txt -o %TMPINS%\install_manifest.txt >> %TMPLOG%
  121 )
  122 
  123 @fa4 " -- " %TMPLOG%
  124 
  125 @call elapsed %TMPBGN%
  126 @echo All done... see %TMPLOG%
  127 
  128 @goto END
  129 
  130 :BAD_BR
  131 @echo Try to do 'git checkout %TMPBR%'
  132 @git checkout %TMPBR% >> %TMPLOG% 2>&1
  133 @call chkbranch %TMPBR%
  134 @if ERRORLEVEL 1 goto NO_BR
  135 @goto DNBR
  136 :NO_BR
  137 @echo.
  138 @echo Unable to check out %TMPBR%! *** FIX ME ***
  139 @echo.
  140 @goto ISERR
  141 
  142 :GOTNO
  143 @echo.
  144 @echo No install at this time, but there may be an updexe.bat to copy the EXE to c:\MDOS...
  145 @echo.
  146 @goto END
  147 
  148 :NOSRC
  149 @echo Can NOT locate source %TMPSRC%! *** FIX ME ***
  150 @echo Can NOT locate source %TMPSRC%! *** FIX ME *** >> %TMPLOG%
  151 @goto ISERR
  152 
  153 :NOCM
  154 @echo Can NOT locate %TMPSRC%\CMakeLists.txt!
  155 @echo Can NOT locate %TMPSRC%\CMakeLists.txt! >> %TMPLOG%
  156 @goto ISERR
  157 
  158 :ERR1
  159 @echo cmake configuration or generations ERROR
  160 @echo cmake configuration or generations ERROR >> %TMPLOG%
  161 @goto ISERR
  162 
  163 :ERR2
  164 @echo ERROR: Cmake build Debug FAILED!
  165 @echo ERROR: Cmake build Debug FAILED! >> %TMPLOG%
  166 @goto ISERR
  167 
  168 :ERR3
  169 @echo ERROR: Cmake build Release FAILED!
  170 @echo ERROR: Cmake build Release FAILED! >> %TMPLOG%
  171 @goto ISERR
  172 
  173 :ERR4
  174 @echo ERROR: Install Debug FAILED!
  175 @echo ERROR: Install Debug  FAILED! >> %TMPLOG%
  176 @goto ISERR
  177 
  178 :ERR5
  179 @echo ERROR: Install Release FAILED!
  180 @echo ERROR: Install Release  FAILED! >> %TMPLOG%
  181 @goto ISERR
  182 
  183 :ISERR
  184 @echo See %TMPLOG% for details...
  185 @endlocal
  186 @exit /b 1
  187 
  188 :END
  189 @endlocal
  190 @exit /b 0
  191 
  192 @REM eof