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
 
@@ -269,11 +269,16 @@ Function IsCachedVersion(ByVal version)
 
		IsCachedVersion = False
 
	Else
 
		IsCachedVersion = True
 
	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
 
@@ -32,12 +32,16 @@
 
		</Configuration>
 
	</Configurations>
 
	<References>
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
 
	</Files>
 
	<Globals>
 
	</Globals>
projects/version_vs90.vcproj
Show inline comments
 
@@ -33,12 +33,16 @@
 
		</Configuration>
 
	</Configurations>
 
	<References>
 
	</References>
 
	<Files>
 
		<File
 
			RelativePath="..\src\ottdres.rc.in"
 
			>
 
		</File>
 
		<File
 
			RelativePath="..\src\rev.cpp.in"
 
			>
 
		</File>
 
	</Files>
 
	<Globals>
 
	</Globals>
0 comments (0 inline, 0 general)