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 @@ + +