Changeset - r10523:e4a70c2e7a41
[Not reviewed]
master
0 1 0
glx - 16 years ago 2009-01-01 18:18:17
glx@openttd.org
(svn r14780) -Fix (r14777): of course VBS evaluates all parts of a boolean expression
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
projects/determineversion.vbs
Show inline comments
 
@@ -273,12 +273,12 @@ Function IsCachedVersion(ByVal version)
 
End Function
 

	
 
Function CheckFile(filename)
 
	CheckFile = FSO.FileExists(filename) And (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified)
 
	CheckFile = FSO.FileExists(filename)
 
	If CheckFile Then CheckFile = (FSO.GetFile(filename).DateLastModified >= FSO.GetFile(filename & ".in").DateLastModified)
 
End Function
 

	
 
Dim version
 
version = DetermineSVNVersion
 
If Not (IsCachedVersion(version) And CheckFile("../src/rev.cpp") And CheckFile("../src/ottdres.rc")) Then
 
	wscript.echo "update"
 
	UpdateFiles version
 
End If
0 comments (0 inline, 0 general)