Changeset - r10520:4bc746bab2e4
[Not reviewed]
master
0 3 0
glx - 16 years ago 2008-12-31 16:53:43
glx@openttd.org
(svn r14777) -Fix: be sure to update ottdres.rc and rev.cpp when their .in changes (MSVC)
3 files changed with 14 insertions and 1 deletions:
0 comments (0 inline, 0 general)
projects/determineversion.vbs
Show inline comments
 
@@ -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
projects/version_vs80.vcproj
Show inline comments
 
@@ -35,6 +35,10 @@
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
projects/version_vs90.vcproj
Show inline comments
 
@@ -36,6 +36,10 @@
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
0 comments (0 inline, 0 general)