shithub: opus-tools

ref: a2a376b6a83c7ff2c8e15b1d7c9078aee4f01257
dir: /win32/genversion.bat/

View raw version
@echo off

for /f %%v in ('git describe --tags --match "v*" --always') do set version=%%v

set version_out=#define %2 "%version%"

echo %version_out% > %1_temp

echo n | comp %1_temp %1 > NUL 2> NUL

if not errorlevel 1 goto exit

copy /y %1_temp %1

:exit

del %1_temp