Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Commit

Permalink
test test
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Davies authored and Scott Davies committed Apr 13, 2015
1 parent 1d4bebe commit 39cc40b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -258,3 +258,6 @@
/bizhawk/output/N64/SaveRAM/*.bak
/bizhawk/output/N64/State/*.State
/bizhawk/output/N64/State/*.bak
/RA_Integration/RA_BuildVer.h
/RA_Integration/Diffs.txt
/RA_Integration/LiveTag.txt
7 changes: 3 additions & 4 deletions RA_Integration/MakeBuildVer.bat
Expand Up @@ -3,15 +3,14 @@
REM git describe --tags --long > LiveTag.txt
git describe --tags --match "RAIntegration.*" > LiveTag.txt
@set /p ACTIVE_TAG=<LiveTag.txt
@set VERSION_NUM=%ACTIVE_TAG:~7,3%
@set VERSION_NUM=%ACTIVE_TAG:~14,3%

git diff HEAD > Diffs.txt
@set /p RAW_DIFFS_FOUND=<Diffs.txt

setlocal
REM set file=
@for /F "usebackq" %%A in ('"Diffs.txt"') do set DIFF_FILE_SIZE=%%~zA
@if %DIFF_FILE_SIZE% GTR 0 set ACTIVE_TAG=Unstaged Changes

@echo Tag: %ACTIVE_TAG% (%VERSION_NUM%)
@echo #define RA_INTEGRATION_VERSION "0.%VERSION_NUM%" > ./RABuildVer.h
@echo RAIntegration Tag: %ACTIVE_TAG% (%VERSION_NUM%)
@echo #define RA_INTEGRATION_VERSION "0.%VERSION_NUM%" > ./RA_BuildVer.h
1 change: 1 addition & 0 deletions RA_Integration/RA_Core.cpp
Expand Up @@ -3,6 +3,7 @@
#include "RA_Achievement.h"
#include "RA_AchievementSet.h"
#include "RA_AchievementOverlay.h"
#include "RA_BuildVer.h"
#include "RA_CodeNotes.h"
#include "RA_Defs.h"
#include "RA_httpthread.h"
Expand Down
2 changes: 1 addition & 1 deletion RA_Integration/RA_Defs.h
Expand Up @@ -19,7 +19,7 @@
#else

//NB. These must NOT be accessible from the emulator!
#define RA_INTEGRATION_VERSION "0.053"
//#define RA_INTEGRATION_VERSION "0.053"

// RA-Only
#include "rapidjson/include/rapidjson/document.h"
Expand Down
6 changes: 6 additions & 0 deletions RA_Integration/RA_Integration.vcxproj
Expand Up @@ -70,6 +70,9 @@
<ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>
<SubSystem>Windows</SubSystem>
</Link>
<PreBuildEvent>
<Command>MakeBuildVer.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
Expand All @@ -91,6 +94,9 @@
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PreBuildEvent>
<Command>MakeBuildVer.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="md5.c" />
Expand Down

0 comments on commit 39cc40b

Please sign in to comment.