# HG changeset patch # User glx # Date 2008-12-31 16:53:43 # Node ID 4bc746bab2e43f686099af13d6a39cb5c4fab4c3 # Parent 2f31649cb7d76489bbd0c00ce44f57566b5859b9 (svn r14777) -Fix: be sure to update ottdres.rc and rev.cpp when their .in changes (MSVC) diff --git a/projects/determineversion.vbs b/projects/determineversion.vbs --- a/projects/determineversion.vbs +++ b/projects/determineversion.vbs @@ -272,8 +272,13 @@ Function IsCachedVersion(ByVal version) End If End Function +Function CheckFile(filename) + CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified) +End Function + Dim version version = DetermineSVNVersion -If Not (IsCachedVersion(version) And FSO.FileExists("../src/rev.cpp") And FSO.FileExists("../src/ottdres.rc")) Then +If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then + wscript.echo "update" UpdateFiles version End If diff --git a/projects/version_vs80.vcproj b/projects/version_vs80.vcproj --- a/projects/version_vs80.vcproj +++ b/projects/version_vs80.vcproj @@ -35,6 +35,10 @@ + + diff --git a/projects/version_vs90.vcproj b/projects/version_vs90.vcproj --- a/projects/version_vs90.vcproj +++ b/projects/version_vs90.vcproj @@ -36,6 +36,10 @@ + +