github.com/konsorten/ktn-build-info@v1.0.11/prepare_release.bat (about)

     1  @echo off
     2  
     3  cd /d "%~dp0"
     4  
     5  REM ----- build the tool
     6  
     7  go build
     8  
     9  if %ERRORLEVEL% NEQ 0 (
    10      exit /b 1
    11  )
    12  
    13  REM ----- create its own build information
    14  
    15  .\ktn-build-info.exe
    16  
    17  if %ERRORLEVEL% NEQ 0 (
    18      exit /b 1
    19  )
    20  
    21  REM ----- rebuild the tool
    22  
    23  go build
    24  
    25  if %ERRORLEVEL% NEQ 0 (
    26      exit /b 1
    27  )
    28  
    29  REM ----- create help file
    30  
    31  echo # Commandline help text: > HELP.md
    32  echo ``` >> HELP.md
    33  .\ktn-build-info.exe -h >> HELP.md 2>NUL
    34  echo ``` >> HELP.md
    35  
    36  exit /b 0