Aegisub/aegisub/build/version.bat
Thomas Goyne 1e030289ad Revamp how version tagging works
Rather than having it be a configurable option, simply build in final
release mode if Aegisub is being built from a signed tag, and get the
version information from that tag.

Drop the version number from the OS X app bundle when not building from
a tag as it done everywhere else. Drop the arch suffix since ppc hasn't
been tested in years and isn't worth testing as it's only going to get
less relevant as time goes on.

Remove some redundant definitions in the build system.
2012-08-19 14:33:50 -07:00

9 lines
311 B
Batchfile

cd %~dp0..
sh build/version.sh ..
if %ERRORLEVEL% NEQ 0 goto :fail
goto :eof
:fail
ECHO Aegisub requires that sh and git be on the windows command line path for version checking.
> build\git_version.h echo #define BUILD_GIT_VERSION_NUMBER 0
>> build\git_version.h echo #define BUILD_GIT_VERSION_STR "unknown"