2010-11-10 17:03:01 +01:00
|
|
|
@echo off
|
|
|
|
set "LAMEXP_ERROR=1"
|
|
|
|
REM ------------------------------------------
|
|
|
|
set "VER_LAMEXP_MAJOR="
|
|
|
|
set "VER_LAMEXP_MINOR_HI="
|
|
|
|
set "VER_LAMEXP_MINOR_LO="
|
|
|
|
set "VER_LAMEXP_BUILD="
|
2011-04-14 02:21:46 +02:00
|
|
|
set "VER_LAMEXP_TYPE="
|
|
|
|
set "VER_LAMEXP_PATCH="
|
2010-11-10 17:03:01 +01:00
|
|
|
REM ------------------------------------------
|
2010-11-10 21:39:37 +01:00
|
|
|
for /f "tokens=2,*" %%s in (..\..\src\Config.h) do (
|
|
|
|
if "%%s"=="VER_LAMEXP_MAJOR" set "VER_LAMEXP_MAJOR=%%~t"
|
|
|
|
if "%%s"=="VER_LAMEXP_MINOR_HI" set "VER_LAMEXP_MINOR_HI=%%~t"
|
|
|
|
if "%%s"=="VER_LAMEXP_MINOR_LO" set "VER_LAMEXP_MINOR_LO=%%~t"
|
|
|
|
if "%%s"=="VER_LAMEXP_BUILD" set "VER_LAMEXP_BUILD=%%~t"
|
2011-04-14 02:21:46 +02:00
|
|
|
if "%%s"=="VER_LAMEXP_TYPE" set "VER_LAMEXP_TYPE=%%~t"
|
|
|
|
if "%%s"=="VER_LAMEXP_PATCH" set "VER_LAMEXP_PATCH=%%~t"
|
2010-11-10 17:03:01 +01:00
|
|
|
)
|
|
|
|
REM ------------------------------------------
|
|
|
|
set "LAMEXP_ERROR=1"
|
|
|
|
if "%VER_LAMEXP_MAJOR%"=="" GOTO:EOF
|
|
|
|
if "%VER_LAMEXP_MINOR_HI%"=="" GOTO:EOF
|
|
|
|
if "%VER_LAMEXP_MINOR_LO%"=="" GOTO:EOF
|
|
|
|
if "%VER_LAMEXP_BUILD%"=="" GOTO:EOF
|
2011-04-14 02:21:46 +02:00
|
|
|
if "%VER_LAMEXP_TYPE%"=="" GOTO:EOF
|
|
|
|
if "%VER_LAMEXP_PATCH%"=="" GOTO:EOF
|
2010-11-10 17:03:01 +01:00
|
|
|
REM ------------------------------------------
|
|
|
|
echo LameXP Version:
|
2011-04-14 02:21:46 +02:00
|
|
|
echo %VER_LAMEXP_MAJOR%.%VER_LAMEXP_MINOR_HI%%VER_LAMEXP_MINOR_LO%, Build #%VER_LAMEXP_BUILD% (%VER_LAMEXP_TYPE%-%VER_LAMEXP_PATCH%)
|
2010-11-10 17:03:01 +01:00
|
|
|
echo.
|
|
|
|
REM ------------------------------------------
|
|
|
|
set "LAMEXP_ERROR=0"
|