1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-14 01:59:09 +00:00

(svn r14777) -Fix: be sure to update ottdres.rc and rev.cpp when their .in changes (MSVC)

This commit is contained in:
glx
2008-12-31 16:53:43 +00:00
parent 5f4aef3c11
commit 88e3ff5413
3 changed files with 14 additions and 1 deletions

View File

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